/* Authentication Pages Styles */
:root {
    --primary-color: #377b7c;
    --primary-dark: #2d6b6c;
    --primary-light: #5aa9aa;
    --secondary-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --dark-color: #1F2937;
    --gray-color: #6B7280;
    --light-color: #F3F4F6;
    --white-color: #FFFFFF;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    --box-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: none;
    background-color: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Hide mobile back arrow by default (desktop and large screens) */
body.auth-login .mobile-home-back { display: none; }

.auth-container {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

/* Narrower container for signup page */
.auth-register.auth-container {
    max-width: 800px;
}

.auth-card {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.auth-card-large {
    max-width: 600px;
}

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-decoration: none;
}

.auth-logo i {
    font-size: 2rem;
}

.auth-header h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-header p {
    color: var(--gray-color);
    font-size: 1rem;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #FEE2E2;
    color: var(--danger-color);
    border: 1px solid #FECACA;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* Form Styles */
.auth-form {
    margin-bottom: 1.5rem;
}

/* Register page: tighten space before the OR divider */
.auth-register .auth-form {
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label i {
    margin-right: 5px;
    color: var(--gray-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
}

.form-group input::placeholder {
    color: #9CA3AF;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 42px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 5px;
}

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

/* Ensure space for custom toggle icon */
.form-group input[type="password"] {
    padding-right: 44px;
}

/* Hide native password reveal/clear icons (Edge/IE) to avoid double icons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}

.password-strength.weak { color: #EF4444; }
.password-strength.fair { color: #F59E0B; }
.password-strength.good { color: #3B82F6; }
.password-strength.strong { color: #10B981; }
.password-strength.very-strong { color: #059669; }

/* Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Form Group Inline */
.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(55, 123, 124, 0.3);
}

.btn-block {
    width: 100%;
}

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

/* Register page: tighter OR divider spacing */
.auth-register .auth-divider {
    margin: 0.75rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #E5E7EB;
}

.auth-divider span {
    background-color: white;
    padding: 0 1rem;
    color: var(--gray-color);
    position: relative;
    font-size: 0.9rem;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Base social button (applies to <a> and <button>) */
.btn-social {
    flex: 1 1 0;
    min-width: 220px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #E5E7EB;
    background-color: #fff;
    color: #111827;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.btn-social i { font-size: 1.05rem; }

.btn-social .google-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.btn-social:focus { outline: none; }

.btn-social:focus-visible {
    box-shadow: 0 0 0 4px rgba(55,123,124,0.15), 0 6px 16px rgba(17,24,39,0.10);
}

.btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(17,24,39,0.10);
}

.btn-social:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(17,24,39,0.12);
}

/* Google: clean white pill with subtle brand ring on hover */
.btn-google {
    background: #fff;
    color: #1F2937;
    border-color: #E5E7EB;
}

.btn-google:hover {
    border-color: #e5e7eb;
    box-shadow: 0 8px 20px rgba(234,67,53,0.15);
}

.btn-google:focus-visible {
    box-shadow: 0 0 0 4px rgba(234,67,53,0.20), 0 8px 20px rgba(234,67,53,0.15);
}

/* GitHub: light outline pill (no black background) */
.btn-github {
    background: #fff;
    color: #111827;
    border-color: #E5E7EB;
}

.btn-github i { color: currentColor; }

.btn-github:hover {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 8px 20px rgba(17,24,39,0.12);
}

.btn-github:focus-visible {
    box-shadow: 0 0 0 4px rgba(17,24,39,0.12), 0 8px 22px rgba(17,24,39,0.16);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Auth Image Section */
.auth-image {
    flex: 1;
    background: none;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--dark-color);
    text-align: center;
    border-left: 1px solid #e5e7eb;
}

.auth-image img {
    max-width: 320px;
    width: 100%;
    margin-bottom: 2rem;
}

.auth-image h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-image p {
    font-size: 1rem;
    opacity: 0.9;
}


