


.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 2rem 1rem;
}


.auth-brand {
    display: none;
}


.auth-form-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 440px;
}


.auth-form-panel:has(.auth-form-register) {
    max-width: 680px;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    animation: authFadeIn 0.5s ease-out;
}


.auth-form-container:has(.auth-form-register) {
    max-width: 640px;
}

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


.auth-header,
.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2,
.auth-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.auth-header p,
.auth-form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


.auth-success {
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.auth-success-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-success-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}


.auth-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 124, 99, 0.1);
}

.auth-input-wrapper input:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--primary-color);
}


.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.auth-container .form-input,
.form-input-wrapper .form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-container .form-input:focus,
.form-input-wrapper .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 124, 99, 0.1);
}

.form-input-wrapper:focus-within .form-input-icon {
    color: var(--primary-color);
}

.form-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}


.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.auth-label-row label {
    margin-bottom: 0;
}

.auth-label-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-label-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


.auth-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit-btn:hover {
    background: #0d5c4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 124, 99, 0.25);
}

.auth-submit-btn:active {
    transform: translateY(0);
}


.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

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

.auth-divider span {
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}


.auth-social-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.auth-social-btn:hover {
    border-color: var(--text-muted);
    background: var(--bg-secondary);
}

.auth-social-btn svg {
    width: 20px;
    height: 20px;
}


.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


.auth-alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}


.auth-resend-form {
    margin-top: 1rem;
}

.auth-resend-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-resend-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}


.auth-form-register .auth-fields-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-fields-column {
    display: flex;
    flex-direction: column;
}


@media (min-width: 640px) {
    .auth-form-container:has(.auth-form-register) {
        max-width: 640px;
    }
    
    .auth-form-register .auth-fields-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .auth-fields-column {
        gap: 0;
    }
}


@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-form-container {
        padding: 1.5rem;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    
    .auth-form-header h2 {
        font-size: 1.5rem;
    }
}


.auth-form-container .auth-input-group:nth-child(1) { animation-delay: 0.1s; }
.auth-form-container .auth-input-group:nth-child(2) { animation-delay: 0.15s; }
.auth-form-container .auth-input-group:nth-child(3) { animation-delay: 0.2s; }
.auth-form-container .auth-input-group:nth-child(4) { animation-delay: 0.25s; }

.auth-input-group {
    animation: authFadeIn 0.4s ease-out both;
}

