/* Neuralis BookMaker - Auth Pages Styles */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-logo .accent {
    color: var(--accent);
}

.auth-logo p {
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
}

.auth-tab:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.auth-tab:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

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

.auth-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--accent);
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 1rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-google svg {
    flex-shrink: 0;
}

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

.auth-switch a {
    color: var(--accent);
}

.auth-switch a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .auth-container {
        padding: 4rem 1rem 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .auth-logo h2 {
        font-size: 1.5rem;
    }
    
    .auth-tabs {
        margin-bottom: 1rem;
    }
    
    .auth-tab {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .auth-form {
        margin-bottom: 1.25rem;
    }
    
    .form-footer {
        margin-bottom: 0.75rem;
    }
    
    .auth-divider {
        margin: 1.25rem 0;
    }
    
    .auth-divider span {
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }
    
    .auth-switch {
        margin-top: 1.25rem;
        font-size: 0.85rem;
    }
    
    .alert {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 3rem 0.8rem 0.8rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-logo h2 {
        font-size: 1.3rem;
    }
    
    .auth-logo p {
        font-size: 0.85rem;
    }
    
    .auth-tabs {
        margin-bottom: 0.75rem;
    }
    
    .auth-tab {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .auth-form {
        margin-bottom: 1rem;
    }
    
    .form-footer {
        margin-bottom: 0.6rem;
    }
    
    .forgot-link {
        font-size: 0.8rem;
    }
    
    .auth-divider {
        margin: 1rem 0;
    }
    
    .auth-divider span {
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }
    
    .auth-switch {
        margin-top: 1rem;
        font-size: 0.8rem;
    }
    
    .alert {
        padding: 0.6rem;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}
}

.alert-error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-success {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-input.has-error {
    border-color: var(--error);
}

.required {
    color: var(--error);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-card h1 {
        font-size: 1.5rem !important;
    }
    
    .auth-card p {
        font-size: 0.95rem !important;
    }
    
    .form-group {
        margin-bottom: 1rem !important;
    }
    
    .btn {
        width: 100% !important;
        padding: 0.875rem 1rem !important;
        min-height: 44px !important;
    }
    
    .social-login .btn {
        padding: 0.75rem 1rem !important;
    }
    
    .auth-links {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .auth-links a {
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 320px) {
    .auth-card {
        padding: 1rem !important;
        margin: 1rem !important;
    }
    
    .auth-card h1 {
        font-size: 1.25rem !important;
    }
    
    .auth-card p {
        font-size: 0.85rem !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important;
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
    }
    
    .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
    }
    
    .social-login .btn {
        padding: 0.625rem 0.75rem !important;
    }
    
    .auth-links a {
        font-size: 0.85rem !important;
        padding: 0.5rem !important;
    }
}
