/* Стили для страницы авторизации */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-primary);
    padding: var(--spacing-xl);
    color: var(--color-text-primary);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.auth-back {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: var(--spacing-4xl);
    transition: color var(--transition-base);
}

.auth-back:hover {
    color: var(--color-text-primary);
}

.auth-back-icon {
    width: var(--spacing-2xl);
    height: var(--spacing-2xl);
}

.auth-back-text {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-7xl);
}

.auth-logo {
    font-family: var(--font-serif);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    letter-spacing: 2px;
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-2xl);
}

.auth-title {
    font-family: var(--font-serif);
    font-size: calc(var(--font-size-3xl) - 4px);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-sm) 0;
}

.auth-container-signup .auth-title {
    font-size: 22px;
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--spacing-sm) 0;
}

.auth-subtitle {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    margin: 0;
}

.auth-container-signup .auth-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

.auth-form-wrapper {
    padding: var(--spacing-3xl);
    border: none;
    min-width: 320px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    position: relative;
    min-width: 280px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 280px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-label {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-primary);
}

.form-input {
    width: 100%;
    min-width: 280px;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) calc(var(--spacing-md) + 4px);
    min-height: 44px;
    background: var(--color-input-bg);
    border: var(--color-input-border);
    border-radius: var(--radius-xl);
    color: var(--color-input-text);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    transition: all var(--transition-base);
    box-sizing: border-box;
    caret-color: var(--color-accent-primary);
}

.form-input:hover {
    background: var(--color-input-bg-hover);
}

.form-input:focus {
    outline: none;
    border: var(--color-input-border-focus);
    background: var(--color-input-bg-focus);
    box-shadow: none;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-error {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    color: var(--color-error);
    display: none;
    margin-top: var(--spacing-xs);
}

.form-error.show {
    display: block;
}

/* Password input wrapper with toggle */
.form-input-wrapper {
    position: relative;
    width: 100%;
}

.form-input-wrapper .form-input {
    padding-right: var(--spacing-5xl);
}

.form-input-toggle {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: var(--spacing-xs);
    cursor: pointer;
    color: var(--color-text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-base);
}

.form-input-toggle:hover {
    color: var(--color-text-secondary);
}

.form-input-toggle-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Password requirements */
.form-password-requirements {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
}

.form-password-req-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-tertiary);
    transition: color var(--transition-base);
}

.form-password-req-item.valid {
    color: var(--color-accent-primary);
}

.form-password-req-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-text-tertiary);
    opacity: 1;
    transform: scale(1);
    transition: color var(--transition-base), opacity var(--transition-base), transform var(--transition-base);
}

.form-password-req-item.valid .form-password-req-icon {
    color: var(--color-accent-primary);
    opacity: 1;
    transform: scale(1);
}

/* Terms and conditions */
.form-terms {
    margin: var(--spacing-lg) 0;
}

.form-terms-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    cursor: pointer;
    position: relative;
}

.form-terms-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    cursor: pointer;
}

.form-terms-label input[type="checkbox"] + span {
    padding-left: 28px;
    position: relative;
    display: block;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: var(--line-height-normal);
}

.form-terms-label input[type="checkbox"] + span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border-secondary);
    border-radius: var(--radius-circle);
    background: transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    box-sizing: border-box;
}

.form-terms-label input[type="checkbox"]:checked + span::before {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
}

.form-terms-label input[type="checkbox"]:checked + span::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid var(--color-text-inverse);
    border-width: 0 2px 2px 0;
    box-sizing: border-box;
}

.form-terms-label input[type="checkbox"]:hover + span::before {
    border-color: var(--color-accent-primary);
}

.form-terms-label input[type="checkbox"]:focus + span::before {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

.form-terms-link {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.form-terms-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}


.auth-link-button {
    background: none !important;
    border: none !important;
    color: var(--color-accent-primary) !important;
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    cursor: pointer !important;
    padding: 0 !important;
    text-decoration: none;
    transition: opacity var(--transition-base), text-decoration var(--transition-base);
    pointer-events: auto !important;
    position: relative !important;
    z-index: 999 !important;
    display: inline-block !important;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.auth-link-button:hover {
    opacity: 0.8 !important;
    text-decoration: underline !important;
    color: var(--color-accent-hover) !important;
}

.auth-link-button:active {
    opacity: 0.6 !important;
}

.auth-link-button:focus {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

.auth-button {
    width: 100%;
    min-width: 280px;
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--color-accent-primary);
    border: none;
    border-radius: var(--radius-full);
    color: #FFFFFF !important;
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background-color var(--transition-base), opacity var(--transition-base);
    margin-top: var(--spacing-sm);
}

.auth-button:hover:not(:disabled) {
    background: var(--color-accent-hover);
    color: #FFFFFF !important;
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #FFFFFF !important;
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.auth-button-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1.5s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
}

.auth-success {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-5xl) var(--spacing-4xl);
    text-align: center;
    border: 1px solid var(--color-border-secondary);
}

.success-icon {
    width: var(--spacing-6xl);
    height: var(--spacing-6xl);
    border-radius: var(--radius-circle);
    background: var(--color-success);
    color: var(--color-text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin: 0 auto var(--spacing-2xl);
}

.success-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-md) 0;
}

.success-message {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Signup page specific styles - Two column layout */
.auth-page-signup {
    min-height: 100vh;
    height: auto;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Enable scrolling on body and html for signup page */
html:has(.auth-page-signup),
body:has(.auth-page-signup) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
}

.auth-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    height: auto;
    padding: var(--spacing-6xl) 0;
    box-sizing: border-box;
    margin: 0;
    gap: 0;
}

/* Left section - Form */
.auth-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-5xl) 140px;
    gap: var(--spacing-4xl);
    width: 50%;
    max-width: 50%;
    order: 0;
    align-self: stretch;
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
    box-sizing: border-box;
    min-height: 100%;
}

.auth-container-signup {
    max-width: 560px;
    min-width: 320px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.auth-container-signup .auth-header {
    margin-bottom: var(--spacing-5xl);
    text-align: center;
}

/* Right section - Benefits */
.auth-benefits-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: var(--spacing-4xl);
    gap: var(--spacing-sm);
    flex: 1 1 50%;
    order: 1;
    align-self: stretch;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    position: relative;
    border: none;
    margin-right: var(--spacing-6xl);
    margin-left: 0;
    box-sizing: border-box;
}

.auth-benefits-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 308px var(--spacing-4xl);
    gap: var(--spacing-sm);
    isolation: isolate;
    width: 100%;
    height: 100%;
    background: var(--color-bg-menu);
    border-radius: var(--radius-3xl);
    flex: 1;
    order: 0;
    align-self: stretch;
    position: relative;
    min-height: 0;
    box-sizing: border-box;
}

.auth-benefits-sphere {
    width: 100%;
    height: 50%;
    position: absolute;
    top: calc(25% - var(--spacing-4xl));
    left: 0;
    z-index: 0;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
}

.auth-benefits-sphere canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;
}

.auth-benefits-typing-text {
    position: absolute;
    width: 600px;
    max-width: calc(100% - 64px);
    min-height: 60px;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
    top: calc(75% + var(--spacing-4xl));
    font-family: var(--font-primary);
    font-style: normal;
    font-weight: var(--font-weight-normal);
    font-size: 24px;
    line-height: var(--line-height-relaxed);
    display: block;
    text-align: center;
    color: var(--color-text-primary);
    opacity: 0.9;
    flex: none;
    order: 1;
    flex-grow: 0;
    z-index: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 var(--spacing-lg);
}

.auth-benefits-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    background: var(--color-accent-primary);
    animation: blink-cursor 1s infinite;
    vertical-align: baseline;
}

@keyframes blink-cursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.auth-benefits-text {
    position: absolute;
    width: 408px;
    max-width: calc(100% - 64px);
    min-height: var(--line-height-normal);
    height: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--spacing-5xl);
    font-family: var(--font-primary);
    font-style: normal;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-primary);
    opacity: 0.2;
    flex: none;
    order: 1;
    flex-grow: 0;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.auth-benefits-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin: 0;
    width: 100%;
}

.auth-benefits-subtitle {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    margin: 0;
}

.auth-benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    list-style: none;
    padding: 0;
    margin: 0;
    width: 448px;
}

.auth-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.auth-benefit-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-accent-primary);
    margin-top: 2px;
}

.auth-benefit-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
}

.auth-benefit-content strong {
    font-family: var(--font-primary);
    font-size: calc(var(--font-size-md) + 4px);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    display: block;
}

.auth-benefit-content span {
    font-family: var(--font-primary);
    font-size: calc(var(--font-size-md) - 2px);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    display: block;
}

/* More gray text only for benefits list in right section */
.auth-benefits-list .auth-benefit-content span {
    color: var(--color-text-tertiary);
}

/* Light theme benefits */
body.light-theme .auth-benefits-section {
    background: transparent;
}

body.light-theme .auth-benefits-content {
    background: rgb(245, 245, 245);
    border: none;
}

body.light-theme .auth-benefit-icon {
    color: var(--color-accent-primary);
}

/* Сфера в светлой теме должна быть видна */
body.light-theme .auth-benefits-sphere {
    opacity: 1;
}

body.light-theme .auth-benefits-sphere canvas {
    opacity: 1;
}

/* Текст в правом блоке в светлой теме */
body.light-theme .auth-benefits-title {
    color: #000000;
}

body.light-theme .auth-benefits-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .auth-benefits-typing-text {
    color: #000000;
}

body.light-theme .auth-benefits-text {
    color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

body.light-theme .auth-benefit-content strong {
    color: #000000;
}

body.light-theme .auth-benefit-content span {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .auth-benefits-list .auth-benefit-content span {
    color: rgba(0, 0, 0, 0.5);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-2xl) 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border-secondary);
}

.auth-divider-text {
    padding: 0 var(--spacing-md);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    position: relative;
    z-index: 1;
}

/* Social buttons */
.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.auth-social-button {
    width: 100%;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-bg-button-secondary);
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.auth-social-button:hover {
    background: #ffffff;
    color: var(--color-text-inverse);
    transform: translateY(-1px);
}

.auth-social-button:active {
    transform: translateY(0);
}

.auth-social-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-social-button span {
    display: flex;
    align-items: center;
}

/* Light theme social buttons */
body.light-theme .auth-social-button {
    background: var(--color-bg-button-secondary-light);
    border-color: var(--color-border-primary);
    color: var(--color-text-primary);
}

body.light-theme .auth-social-button:hover {
    background: #ffffff;
    color: #000000 !important;
}

body.light-theme .auth-social-button:hover * {
    color: #000000 !important;
}

/* More sign up options */
.auth-more-options {
    position: relative;
    width: 100%;
    z-index: 10;
}

.auth-more-options-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-tertiary);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    cursor: pointer;
    transition: color var(--transition-base);
    text-decoration: none;
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

.auth-more-options-btn:hover {
    color: var(--color-text-secondary);
}

.auth-more-options-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.auth-more-options-dropdown {
    display: none;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-secondary);
    animation: slideDown var(--transition-slow) ease-out;
    position: relative;
    z-index: 12;
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-more-options-dropdown .auth-social-button {
    margin: 0;
}

/* Адаптивные стили */
@media (max-width: 980px) {
    .auth-content {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .auth-benefits-section {
        display: none !important;
    }
    
    .auth-form-section {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        padding: var(--spacing-6xl) var(--spacing-4xl) !important;
        min-width: 0 !important;
    }

    .auth-container-signup {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-form-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .form-input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .auth-social-button {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 0 !important;
        min-height: auto;
    }

    .auth-page-signup {
        padding: 0 !important;
        min-height: auto;
    }

    .auth-content {
        flex-direction: column !important;
        min-height: auto;
        height: auto;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .auth-benefits-section {
        display: none !important;
    }

    .auth-form-section {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        padding: var(--spacing-4xl) var(--spacing-lg) !important;
        gap: var(--spacing-2xl) !important;
        height: auto;
        min-width: 0 !important;
    }

    .auth-container-signup {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-container-signup .auth-header {
        width: 100% !important;
        margin-bottom: var(--spacing-4xl) !important;
        text-align: center;
    }

    .auth-form-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .auth-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto;
    }

    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto;
    }

    .form-label {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .auth-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .auth-social-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .auth-title {
        font-size: 28px !important;
        line-height: 38px !important;
        width: 100% !important;
        height: auto;
    }

    .auth-subtitle {
        font-size: var(--font-size-md) !important;
        width: 100% !important;
        height: auto;
    }

    .auth-logo {
        width: 100%;
        height: auto;
    }

    .auth-social-buttons {
        width: 100% !important;
        flex-direction: column;
        gap: var(--spacing-md) !important;
        height: auto;
    }
}

@media (max-width: 480px) {
    .auth-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .auth-form-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: var(--spacing-3xl) var(--spacing-md) !important;
        min-width: 0 !important;
    }

    .auth-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-container-signup {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-form-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    .auth-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .form-input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-social-button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-title {
        font-size: var(--font-size-2xl) !important;
        width: 100% !important;
    }

    .auth-subtitle {
        font-size: var(--font-size-sm) !important;
        width: 100% !important;
    }

    .auth-logo {
        font-size: var(--font-size-sm);
    }

    .auth-social-buttons {
        width: 100% !important;
        gap: var(--spacing-sm) !important;
    }

    .auth-benefits-title {
        font-size: var(--font-size-xl);
    }
}

/* Light theme: Checkbox styles */
body.light-theme .form-terms-label input[type="checkbox"] + span::before {
    border-color: var(--color-border-primary);
}

body.light-theme .form-terms-label input[type="checkbox"]:hover + span::before {
    border-color: var(--color-accent-primary);
}

/* Light theme: Основные стили для страниц авторизации */
body.light-theme .auth-page {
    background: #ffffff;
    color: #000000;
}

body.light-theme .auth-title {
    color: #000000;
}

body.light-theme .auth-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .auth-logo {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .auth-back {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .auth-back:hover {
    color: #000000;
}

body.light-theme .form-label {
    color: #000000;
}

body.light-theme .form-input {
    background: rgb(240, 240, 240);
    border: none;
    color: #000000;
}

body.light-theme .form-input:hover {
    background: rgb(235, 235, 235);
    border: none;
}

body.light-theme .form-input:focus {
    background: rgb(240, 240, 240);
    border: none;
    box-shadow: none;
    outline: none;
}

body.light-theme .form-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-theme .auth-button {
    background: var(--color-button-primary);
    color: #ffffff;
}

body.light-theme .auth-button:hover:not(:disabled) {
    background: var(--color-button-primary-hover);
    color: #ffffff;
}

body.light-theme .auth-switch {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .auth-switch a {
    color: var(--color-button-primary);
}

body.light-theme .form-error {
    color: #dc2626;
}

