/* 
 * Linguify Authentication Pages - Centralized CSS
 * Used for: login, register, password reset, email verification
 */

:root {
    --primary-color: #2D5BBA;
    --accent-color: #00D4AA;
    --primary-dark: #1e3a8a;
    --accent-dark: #059669;
    --gradient-bg: linear-gradient(135deg, #2D5BBA 0%, #00D4AA 100%);
    --gradient-bg-hover: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
    --success-color: #00D4AA;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --text-muted: #6b7280;
    --bg-light: #f7fafc;
    --border-color: #e5e7eb;
    --shadow-primary: rgba(45, 91, 186, 0.3);
    --shadow-hover: rgba(45, 91, 186, 0.4);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    margin: 0;
}

/* Container Styles */
.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.auth-form {
    padding: 3rem;
}

/* Header Styles */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .brand-logo {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-header h1, .auth-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header h1 {
    font-size: 2rem;
}

.auth-header h2 {
    font-size: 1.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

/* Icon Styles */
.icon-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.icon-container i {
    font-size: 4rem;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease-out;
}

.success-icon i {
    font-size: 3rem;
    color: var(--success-color);
    animation: checkmark 0.6s ease-out 0.3s both;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 91, 186, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-bg);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-primary);
    color: white !important;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--gradient-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--shadow-hover);
    color: white !important;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-success {
    background-color: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

/* Info Boxes */
.info-box {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.password-requirements {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.password-requirements h6 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.password-requirements ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.password-requirements li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.tips-box {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.tips-box h6 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tips-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.tips-box li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Navigation */
.back-to-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: #e0e7ff;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    transition: all 0.3s ease;
}

/* Dividers */
.divider {
    margin: 2rem 0;
    border-top: 1px solid var(--border-color);
}

/* Text Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center !important;
}

.small {
    font-size: 0.875rem;
}

/* Width Utilities */
.w-100 {
    width: 100% !important;
}

/* Margin/Padding Utilities */
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }

/* Animations */
@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    from {
        transform: scale(0) rotate(-45deg);
    }
    to {
        transform: scale(1) rotate(0);
    }
}

/* Email Done Page Styles */
.email-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: fadeInScale 0.5s ease-out;
}

.email-icon i {
    font-size: 2.5rem;
}

.email-icon .send-animation {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1rem;
    animation: sendEmail 2s ease-out infinite;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes sendEmail {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        transform: translate(30px, -30px);
        opacity: 0;
    }
}

.info-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.steps-box {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.steps-box h6 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.steps-box .step {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
}

.steps-box .step-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.steps-box .step-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    text-align: left;
}

.warning-box i {
    color: var(--warning-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-form {
        padding: 2rem;
    }
    
    .back-to-home {
        position: static;
        display: block;
        text-align: center;
        margin-bottom: 2rem;
    }
}