* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a2332; /* Темносиний фон */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px 16px;
}

.login-container {
    width: 100%;
    max-width: 520px; /* Увеличено для вместительности текста */
    min-width: 120px; /* Минимальная ширина для предотвращения обрезки текста */
    padding: 0;
    margin: 0 auto;
}

.views-viewport {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    /* Smoothly animate height changes so viewport adapts to active pane content */
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card-welcome {
    padding: 28px 40px 22px;
    text-align: center;
    border-bottom: 1px solid #ececec;
}

.auth-welcome-title {
    font-size: 28px;
    color: #333;
    line-height: 1.35;
    font-weight: 700;
}

.views-slide-clip {
    overflow: hidden;
}

.views-track {
    display: flex;
    width: 300%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.views-track.is-recovery {
    transform: translateX(calc(-100% / 3));
}

.views-track.is-register {
    transform: translateX(calc(-200% / 3));
}

.views-pane {
    flex: 0 0 calc(100% / 3);
    width: calc(100% / 3);
    max-width: calc(100% / 3);
}

.login-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    /* Avoid percentage min-height that can create circular sizing with the viewport */
    min-height: 0;
}

.recovery-form-header {
    margin-bottom: 28px;
}

.recovery-title {
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.btn-back {
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn-back:hover {
    background-color: #f7f7f7;
    border-color: #ccc;
}

.btn-back:active {
    transform: scale(0.98);
}

.btn-back-icon {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    color: #8B4513;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #1a1a1a;
    font-size: 24px;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 14px;
    font-weight: 700; /* Жирный шрифт */
    font-size: 20px; /* Увеличенный размер */
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #A0522D;
}

.terms-choice-field {
    margin-bottom: 22px;
}

.terms-radio-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terms-radio-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding: 10px 0;
    border-radius: 8px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    transition: background-color 0.2s;
}

.terms-radio-row:hover {
    background-color: #f9f9f9;
}

.terms-radio-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.terms-radio-dot {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #c4c4c4;
    border-radius: 50%;
    margin-top: 1px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.terms-radio-input:checked + .terms-radio-dot {
    border-color: #A0522D;
}

.terms-radio-input:checked + .terms-radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #A0522D;
    border-radius: 50%;
}

.terms-radio-row:focus-within .terms-radio-dot {
    box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.25);
}

.terms-radio-label {
    font-size: 14px;
    color: #444;
    line-height: 1.45;
    font-weight: 500;
    padding-top: 1px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 25px;
}

.remember-me {
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    accent-color: #A0522D;
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #A0522D;
}

.login-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: #A0522D;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.login-button:hover {
    background-color: #8B4513;
}

.login-button:active {
    transform: scale(0.98);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #8B4513;
    text-decoration: none;
    font-weight: 5050;
    color: #A0522D;
}

.form-footer a:hover {
    text-decoration: underline;
    color: #A0522D;
}

