/* Authentication Pages Styling */

.auth-page {
    background: var(--light-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.auth-left {
    background: linear-gradient(135deg, var(--purple), var(--light-purple));
    color: var(--white);
    padding: var(--space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.auth-brand .logo-icon {
    width: 48px;
    height: 48px;
}

.auth-brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.auth-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-3xl);
    line-height: 1.6;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.feature-item svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    stroke-width: 2;
}

.feature-item span {
    font-size: 1.063rem;
    font-weight: 600;
}

.auth-right {
    padding: var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-container h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.auth-form {
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-xl);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--text-muted);
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.938rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-block {
    width: 100%;
}

.alert {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2;
}

.alert-error {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger);
    border: 1px solid rgba(214, 48, 49, 0.3);
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: var(--space-xl) 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 var(--space-md);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    border-color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.link:hover {
    color: var(--light-purple);
    text-decoration: underline;
}

.input-hint {
    font-size: 0.813rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.input-error {
    font-size: 0.813rem;
    color: var(--danger);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.input-error svg {
    width: 14px;
    height: 14px;
}

.form-group.has-error input {
    border-color: var(--danger);
}

.form-group.has-success input {
    border-color: var(--success);
}

.strength-meter {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: var(--space-sm);
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-weak { background: var(--danger); width: 33%; }
.strength-medium { background: var(--warning); width: 66%; }
.strength-strong { background: var(--success); width: 100%; }

.terms-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: var(--space-lg);
}

.terms-text a {
    color: var(--primary);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        padding: var(--space-2xl);
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .auth-features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .feature-item {
        flex: 1 1 auto;
        min-width: 200px;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: var(--space-md);
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Input Icons */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 3rem;
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

/* Success Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-form-container {
    animation: slideInRight 0.5s ease-out;
}