/* Auth Pages Styles */
.auth-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    backdrop-filter: blur(10px);
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-title {
    font-family: 'Benzin', sans-serif;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-family: 'Benzin', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* ����������� ���������� ����� ���������� */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ������ ������ ����� ����� */
.form-group label {
    font-family: 'Benzin', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.form-group input,
.form-group select {
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: 'Benzin', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.error-message {
    font-family: 'Benzin', sans-serif;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
    min-height: 18px;
    display: block;
}

/* ����� ��� ���� ������ � ������� ������ */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-group input[type="password"],
.form-group input[type="text"] {
    padding-right: 45px;
}

.password-requirements {
    margin-top: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-requirements span {
    font-family: 'Benzin', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 10px;
}

.password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements li {
    font-family: 'Benzin', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.password-requirements li::before {
    content: '?';
    margin-right: 8px;
    color: #e74c3c;
}

.password-requirements li.valid {
    color: rgba(255, 255, 255, 0.8);
}

.password-requirements li.valid::before {
    content: '?';
    color: #27ae60;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    accent-color: rgba(255, 255, 255, 0.7);
}

.checkbox-group label {
    font-family: 'Benzin', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
}

.checkbox-group a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.checkbox-group a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
}

.forgot-password {
    font-family: 'Benzin', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ffffff;
}

/* ������ ����������� ���� � ������� �������� */
.auth-submit-btn {
    margin-top: 30px;
    position: relative;
    padding: 16px 20px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Benzin', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
}

.auth-submit-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: block;
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.auth-submit-btn.loading .btn-text {
    opacity: 0;
}

.auth-submit-btn.loading .btn-loading {
    opacity: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    font-family: 'Benzin', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.auth-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #ffffff;
}

/* Input validation states */
.form-group input.valid {
    border-color: #27ae60;
}

.form-group input.invalid {
    border-color: #e74c3c;
}

/* Phone input styling */
input[type="tel"] {
    font-family: 'Benzin', sans-serif;
}

/* Select styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L6 8L9 5' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ����� ��� ������ ������ ���� */
.tile-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.tile-option {
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tile-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tile-option.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.tile-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.tile-icon svg {
    width: 24px;
    height: 24px;
}

.tile-content h4 {
    font-family: 'Benzin', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: white;
}

.tile-content p {
    font-family: 'Benzin', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ����� ��� ������ ������ */
.class-selector-wrapper {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.class-grid {
    margin-top: 8px;
}

.class-category {
    margin-bottom: 30px;
}

.class-category h5 {
    font-family: 'Benzin', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.class-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.class-btn {
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-family: 'Benzin', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.class-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.class-btn.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .auth-card {
        padding: 40px 30px;
    }

    .auth-title {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tile-selector {
        grid-template-columns: 1fr;
    }

    .class-buttons {
        gap: 10px;
    }

    .class-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 70px;
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 25px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .tile-option {
        padding: 20px;
        gap: 12px;
    }

    .tile-icon {
        width: 40px;
        height: 40px;
    }

    .tile-icon svg {
        width: 20px;
        height: 20px;
    }

    .class-btn {
        flex: 1 1 100%;
    }
}

/* ����� ��� ������ ������ ���� - ����������� */
.tile-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 8px;
}

.tile-option {
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 80px;
}

.tile-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tile-option.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.tile-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.tile-icon svg {
    width: 20px;
    height: 20px;
}

.tile-content h4 {
    font-family: 'Benzin', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: white;
    line-height: 1.2;
}

.tile-content p {
    font-family: 'Benzin', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.3;
}

/* ����� ��� ���������� ������ */
.password-requirements li.valid {
    color: #27ae60;
}

.password-requirements li.invalid {
    color: rgba(255, 255, 255, 0.5);
}

.password-requirements li.valid .requirement-icon {
    content: url('../assets/images/icon-check.svg');
    filter: brightness(0) saturate(100%) invert(44%) sepia(90%) saturate(469%) hue-rotate(87deg) brightness(95%) contrast(89%);
}

.password-requirements li.invalid .requirement-icon {
    content: url('../assets/images/icon-cross.svg');
    filter: brightness(0) saturate(100%) invert(29%) sepia(98%) saturate(7484%) hue-rotate(355deg) brightness(94%) contrast(124%);
}

.requirement-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ������� ��������� ����� */
.password-requirements li {
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

/* ��������� ������� */
.checkbox-group {
    position: relative;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color);
    display: block;
    transition: all 0.3s ease;
}

.checkbox-custom:hover {
    color: var(--accent-color);
}

.checkbox-custom::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid var(--card-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: all 0.3s ease;
    opacity: 0;
}

/* Простая кастомная галочка */
.simple-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

.simple-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.simple-checkbox input:checked+.checkmark {
    background: #4a90e2;
    border-color: #4a90e2;
}

.simple-checkbox input:checked+.checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    line-height: 1.4;
}

.simple-checkbox a {
    color: #4a90e2;
    text-decoration: none;
}

.simple-checkbox a:hover {
    text-decoration: underline;
}

/* Исправляем форму */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.form-group {
    width: 100%;
}

/* Убедимся, что все поля нормально выглядят */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
}

/* Подключение шрифтов */
@font-face {
    font-family: 'Benzin';
    src: url('../fonts/Benzin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Benzin';
    src: url('../fonts/Benzin-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Benzin';
    src: url('../fonts/Benzin-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Benzin';
    src: url('../fonts/Benzin-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Базовые стили для текста */
body {
    font-family: 'Benzin', sans-serif;
    line-height: 1.6;
}

.auth-title {
    font-family: 'Benzin', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-family: 'Benzin', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    opacity: 0.8;
}

/* Исправляем отступы */
.auth-header {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/*       */
.auth-content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.auth-form-section {
    flex: 1;
}

.auth-side-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
}

.side-feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.side-feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.newspaper-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    font-family: 'Benzin', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: white;
}

.feature-content p {
    font-family: 'Benzin', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.3;
}

.feature-arrow {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.side-feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/*  */
@media (max-width: 968px) {
    .auth-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .auth-side-features {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .side-feature-card {
        padding: 15px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-content h4 {
        font-size: 14px;
    }

    .feature-content p {
        font-size: 11px;
    }
}