/**
 * BandaPro - Authentication Styles
 * Login e Register pages
 */

@import url('variables.css');

/* ============================================
   Auth Container
   ============================================ */
.auth-page {
    min-height: 100vh;
    background-color: #111111; /* Force deep black */
    overflow-x: hidden;
    position: relative;
}

/* Ambient light effect for auth pages - ALWAYS show for testing */
.auth-page::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vw;
    height: 140vw;
    background: radial-gradient(
        circle, 
        rgba(120, 60, 180, 0.55) 0%, 
        rgba(72, 40, 104, 0.1) 50%, 
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
}

/* Light theme background for auth pages */
html:not(.dark) .auth-page {
    background-color: var(--bg-primary);
}

/* Hide ambient light in light theme */
html:not(.dark) .auth-page::before {
    display: none;
}

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

/* ============================================
   Auth Content
   ============================================ */

/* ============================================
   Auth Card
   ============================================ */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-2xl);
    z-index: 1;
}

html.dark .auth-card {
    background: rgba(10, 10, 10, 0.85); /* Darker background */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(72, 40, 104, 0.3); /* Purple border */
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    max-width: 160px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.logo-text {
    font-size: 1.875rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Auth Header
   ============================================ */
.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   Form Styles
   ============================================ */
.auth-form {
    margin-top: 2rem;
    width: 100%;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.label-icon {
    width: 1rem;
    height: 1rem;
    color: var(--violet-500);
}

.form-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--violet-500);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: var(--text-tertiary);
    pointer-events: none;
}

.input-wrapper .form-input {
    padding-left: 2.75rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
}

.password-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.eye-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Password Strength - Hidden */
.password-strength {
    display: none; /* Hide the password strength indicator */
}

.password-strength-bar {
    height: 100%;
    transition: all var(--transition-base);
}

.password-strength.weak .password-strength-bar {
    width: 33%;
    background: var(--rose-500);
}

.password-strength.medium .password-strength-bar {
    width: 66%;
    background: var(--amber-500);
}

.password-strength.strong .password-strength-bar {
    width: 100%;
    background: var(--emerald-500);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-input {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.checkbox-text {
    user-select: none;
}

.link-primary {
    color: var(--violet-500);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.link-primary:hover {
    color: var(--violet-600);
    text-decoration: underline;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-glow)); /* BandaPro purple gradient */
    color: white;
    box-shadow: 0 4px 12px rgba(72, 40, 104, 0.4); /* Purple shadow */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 40, 104, 0.6); /* Stronger purple shadow on hover */
}

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

.btn-block {
    width: 100%;
}

.btn-text {
    flex: 1;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--rose-600);
}

html.dark .alert-error {
    background: rgba(244, 63, 94, 0.15);
    color: var(--rose-400);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--emerald-600);
}

html.dark .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-400);
}

/* ============================================
   Auth Footer
   ============================================ */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}

.note-icon {
    width: 1rem;
    height: 1rem;
    color: var(--amber-500);
}

/* ============================================
   Features Section
   ============================================ */
.auth-features {
    display: none;
    flex-direction: column;
    gap: 2rem;
    max-width: 400px;
    z-index: 1;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-glow)); /* BandaPro purple gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(72, 40, 104, 0.4); /* Purple shadow */
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Trial Badge */
.trial-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-glow)); /* BandaPro purple gradient */
    border-radius: var(--radius-xl);
    color: white;
    box-shadow: 0 8px 20px rgba(72, 40, 104, 0.4); /* Purple shadow */
}

.trial-badge svg {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.trial-badge h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.trial-badge p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.benefits-list svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--emerald-500);
    flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 1024px) {
    .auth-features {
        display: flex;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
    }
    
    .auth-logo {
        margin-bottom: 1.25rem;
    }
    
    .auth-logo img {
        max-width: 120px;
    }
    
    .auth-header {
        margin-bottom: 1.25rem;
    }
    
    .auth-title {
        font-size: 1.125rem;
    }
    
    .auth-subtitle {
        font-size: 0.8125rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .form-input {
        height: 2.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .input-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .input-wrapper .form-input {
        padding-left: 2.5rem;
    }
    
    .alert {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .alert-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .btn {
        height: 2.75rem;
        font-size: 0.875rem;
    }
    
    .btn-icon {
        width: 1rem;
        height: 1rem;
    }
}
