/* Auth Pages Styling - Consistent with Main Site Theme */

/* Profile Dropdown Styling */
.profile-dropdown {
    background-color: #1f2023;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.profile-dropdown a {
    transition: all 0.2s ease;
}

.profile-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #3b82f6;
}

.profile-dropdown-btn {
    transition: all 0.2s ease;
}

.profile-dropdown-btn:hover {
    color: #3b82f6;
}

.profile-dropdown-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

/* Flash Messages Styling */
.flash-messages {
    margin-bottom: 20px;
}

.flash-messages .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    border: none;
}

.flash-messages .alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-left: 4px solid #22c55e;
}

.flash-messages .alert-error,
.flash-messages .alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.flash-messages .alert-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-left: 4px solid #f59e0b;
}

.flash-messages .alert-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
}

/* Two-Column Split Layout */
.auth-container-split {
    min-height: 100vh;
    display: flex;
    background-color: #1f2023;
    position: relative;
}

.auth-container-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Left Column - Image and Quote */
.auth-left-column {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    position: relative;
    z-index: 1;
}

.auth-brand {
    max-width: 500px;
    text-align: center;
}

.brand-logo {
    margin-bottom: 30px;
}

.logo-img {
    max-width: 120px;
    height: auto;
    filter: brightness(1.1);
}

.brand-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.brand-quote {
    margin: 30px 0;
    padding: 0;
    border: none;
}

.brand-quote p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 300;
}

.brand-quote cite {
    color: #00d4ff;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
}

.brand-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

/* Right Column - Form */
.auth-right-column {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    overflow-y: auto;
    max-height: 100vh;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    margin: auto 0;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1f2023;
    padding: 20px;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control.error {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.form-control.success {
    border-color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
}

.form-feedback {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.form-feedback.error {
    color: #ff6b7a;
}

.form-feedback.success {
    color: #2ed573;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00d4ff;
}

.form-check label {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 8px;
}

.terms-checkbox input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #00d4ff;
}

.terms-checkbox label {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.terms-checkbox a {
    color: #00d4ff;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

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

.btn-primary {
    background: #00d4ff;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #0099cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-google {
    background: #db4437;
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: #c23321;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 68, 55, 0.3);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.auth-links span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff6b7a;
}

.alert-success {
    background: rgba(46, 213, 115, 0.15);
    border-color: rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.alert-info {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

.loading {
    display: none;
    text-align: center;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #00d4ff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { 
    background: #ff4757; 
    width: 25%; 
}

.strength-fair { 
    background: #ffa502; 
    width: 50%; 
}

.strength-good { 
    background: #3742fa; 
    width: 75%; 
}

.strength-strong { 
    background: #2ed573; 
    width: 100%; 
}

.strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.strength-text.weak { color: #ff6b7a; }
.strength-text.fair { color: #ffb84d; }
.strength-text.good { color: #5352ed; }
.strength-text.strong { color: #2ed573; }

/* Success State */
.success-state {
    display: none;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #2ed573;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.success-state h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.success-state p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
}

.success-state strong {
    color: #00d4ff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-left-column {
        flex: 1;
        padding: 30px;
    }
    
    .auth-right-column {
        flex: 1;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-quote p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .auth-container-split {
        flex-direction: column;
    }
    
    .auth-left-column {
        flex: none;
        min-height: 40vh;
        padding: 30px 20px;
    }
    
    .auth-right-column {
        flex: none;
        min-height: 60vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: visible;
        max-height: none;
    }
    
    .auth-form-container {
        padding: 30px 20px;
        margin: 0;
    }
    
    .brand-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .brand-quote {
        margin: 20px 0;
    }
    
    .brand-quote p {
        font-size: 1rem;
    }
    
    .brand-features {
        margin-top: 20px;
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
    }
    
    .feature-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-left-column {
        padding: 20px 15px;
        min-height: 35vh;
    }
    
    .auth-form-container {
        padding: 20px 15px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .brand-quote p {
        font-size: 0.95rem;
    }
    
    .logo-img {
        max-width: 80px;
    }
    
    .brand-features {
        gap: 8px;
    }
    
    .feature-item {
        font-size: 0.8rem;
    }
    
    .feature-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Animation for form appearance */
.auth-card {
    animation: slideUp 0.6s ease-out;
}

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