/* ========================================
   AUTHENTICATION PAGES DESIGN
   Register & Login Pages
======================================== */

/* Simple Header for Auth Pages */
body:has(.auth-page) .navbar {
    background: #FFFFFF;
    position: static;
    box-shadow: none;
    border-bottom: 1px solid #F0F0F0;
    padding: 0;
}

body:has(.auth-page) .navbar-container {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body:has(.auth-page) .navbar-left {
    display: flex;
    align-items: center;
}

body:has(.auth-page) .navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide extra navbar links on auth pages */
body:has(.auth-page) .navbar-link {
    display: none;
}

/* Hide all navbar items on auth pages (only show logo) */
body:has(.auth-page) .navbar-nav {
    display: none;
}

body:has(.auth-page) .site-footer {
    margin-top: 0;
}

/* Page Container */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
}

.auth-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 100%;
    min-height: calc(100vh - 200px);
}

/* ========================================
   LEFT SIDE - FORM SECTION
======================================== */
.auth-form-section {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.auth-form-wrapper {
    max-width: 480px;
    width: 100%;
}

.auth-title {
    font-size: 2rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 48px;
    text-align: left;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    position: relative;
    margin-bottom: 32px;
}

.auth-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #000000;
    background: transparent;
    font-size: 1rem;
    color: #000000;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}

.auth-input::placeholder {
    color: #B0B0B0;
    font-weight: 300;
}

.auth-input:focus {
    border-bottom-color: #000000;
}

.auth-input:focus::placeholder {
    opacity: 0.5;
}

/* Password Field */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #999999;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #000000;
}

/* Error Messages */
.auth-errors {
    margin-bottom: 24px;
    padding: 16px;
    background: #FEE2E2;
    border-radius: 8px;
}

.error-message {
    color: #991B1B;
    font-size: 0.875rem;
    margin: 0;
    padding: 4px 0;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: #9B9B9B;
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    margin-bottom: 24px;
}

.auth-submit-btn:hover {
    background: #1b0505;
    transform: translateY(-1px);
}

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

/* Footer Text */
.auth-footer-text {
    text-align: center;
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 16px 0;
    font-weight: 400;
    line-height: 1.5;
}

.auth-link {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #111827;
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: #000000;
}

.auth-link:hover::after {
    width: 100%;
}

/* ========================================
   RIGHT SIDE - SOCIAL LOGIN SECTION
======================================== */
.auth-social-section {
    background: #E8EDF1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.social-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.social-title {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 32px;
}

/* Google Button */
.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 48px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 100px;
    color: #000000;
    font-size: 1.125rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.google-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.google-btn:hover::before {
    width: 300px;
    height: 300px;
}

.google-btn:hover {
    background: #F5F5F5;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.google-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.google-btn:hover svg {
    transform: rotate(360deg);
}

/* Pulse animation on page load */
@keyframes pulse-google {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
}

.google-btn {
    animation: pulse-google 2s ease-in-out 1s 2;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-social-section {
        display: none;
    }

    .auth-form-section {
        min-height: calc(100vh - 200px);
    }
}

@media (max-width: 768px) {
    .auth-page {
        min-height: calc(100vh - 150px);
    }

    .auth-container {
        min-height: calc(100vh - 150px);
    }

    .auth-form-section {
        padding: 40px 24px;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }

    .auth-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

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

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

    .auth-submit-btn {
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .auth-form-section {
        padding: 32px 20px;
    }

    .auth-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .auth-input {
        font-size: 0.9375rem;
    }

    .auth-submit-btn {
        font-size: 0.9375rem;
    }

    .auth-footer-text {
        font-size: 0.875rem;
    }
}

/* ========================================
   SIMPLE HEADER FOR AUTH PAGES
======================================== */

/* Override navbar styles for auth pages */
body:has(.auth-page) .navbar {
    display: block;
    background: #FFFFFF;
    position: static;
    box-shadow: none;
    border-bottom: 1px solid #E0E0E0;
    padding: 20px 0;
}

body:has(.auth-page) .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body:has(.auth-page) .navbar-left {
    display: flex;
    align-items: center;
}

body:has(.auth-page) .navbar-brand {
    display: flex;
    align-items: center;
}

body:has(.auth-page) .navbar-link {
    display: none;
}

body:has(.auth-page) .navbar-nav {
    display: none !important;
}

/* Search icon in header */
.auth-search-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000000;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: opacity 0.3s ease;
    padding: 8px 12px;
}

.auth-search-link:hover {
    opacity: 0.7;
}

.auth-search-link svg {
    width: 18px;
    height: 18px;
}

/* Only show search on auth pages */
body:has(.auth-page) .auth-search-link {
    display: flex;
}

body:not(:has(.auth-page)) .auth-search-link {
    display: none;
}

/* Adjust navbar logo size on auth pages */
body:has(.auth-page) .navbar-logo {
    height: 28px;
}

/* Utility Classes */
.hidden {
    display: none;
}

.eye-open {
    display: none;
}

/* ========================================
   PASSWORD RESET PAGES
======================================== */

/* Password Reset Form */
.reset-password-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 48px 24px;
}

.reset-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #111827;
}

.reset-description {
    font-size: 1rem;
    color: #6b7280;
    margin: 12px 0 0;
    line-height: 1.6;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.form-label svg {
    color: #6b7280;
}

@media (max-width: 768px) {
    .reset-password-container {
        padding: 32px 16px;
    }

    .reset-form-wrapper {
        padding: 32px 24px;
    }
}

/* ========================================
   PASSWORD RESET COMPLETE PAGE
======================================== */

.reset-complete-page {
    min-height: calc(100vh - 64px);
    background: #f9fafb;
    padding: 48px 24px;
    display: flex;
    align-items: center;
}

.reset-complete-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.reset-complete-wrapper {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    color: #10b981;
}

.success-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.success-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: #111827;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #2A2A2A;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .reset-complete-page {
        padding: 32px 16px;
    }

    .reset-complete-wrapper {
        padding: 40px 24px;
    }

    .success-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   CHANGE PASSWORD PAGE
======================================== */

.change-password-page {
    min-height: calc(100vh - 64px);
    background: #f9fafb;
    padding: 48px 24px;
}

.change-password-container {
    max-width: 600px;
    margin: 0 auto;
}

.password-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.form-description {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    background: white;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #c2eaff;
    box-shadow: 0 0 0 3px rgba(194, 234, 255, 0.2);
}

.form-help-text {
    font-size: 0.875rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #c2eaff;
}

.form-help-text ul {
    margin: 0;
    padding-left: 20px;
}

.form-help-text li {
    margin-bottom: 4px;
}

.form-help-text li:last-child {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-save-password {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #10b981;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}

.btn-save-password:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-cancel-password {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: white;
    color: #111827;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    justify-content: center;
}

.btn-cancel-password:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

@media (max-width: 768px) {
    .change-password-page {
        padding: 32px 16px;
    }

    .password-form-wrapper {
        padding: 32px 24px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-save-password,
    .btn-cancel-password {
        width: 100%;
    }
}

/* ========================================
   DARK THEME STYLES
======================================== */

/* Navbar on auth pages - Dark Theme */
[data-theme="dark"] body:has(.auth-page) .navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid #334155;
}

[data-theme="dark"] body:has(.auth-page) .navbar-brand {
    color: #f1f5f9;
}

/* Page Container - Dark Theme */
[data-theme="dark"] .auth-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Left Side - Form Section - Dark Theme */
[data-theme="dark"] .auth-form-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .auth-title {
    color: #f1f5f9;
    text-shadow: 0 2px 10px rgba(168, 220, 255, 0.2);
}

/* Form Inputs - Dark Theme */
[data-theme="dark"] .auth-input {
    border-bottom: 1px solid #475569;
    background: rgba(51, 65, 85, 0.3);
    color: #f1f5f9;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 4px 4px 0 0;
}

[data-theme="dark"] .auth-input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .auth-input:focus {
    border-bottom-color: #60a5fa;
    background: rgba(51, 65, 85, 0.5);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

/* Password Toggle - Dark Theme */
[data-theme="dark"] .password-toggle {
    color: #94a3b8;
}

[data-theme="dark"] .password-toggle:hover {
    color: #f1f5f9;
}

/* Error Messages - Dark Theme */
[data-theme="dark"] .auth-errors {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .error-message {
    color: #fca5a5;
}

/* Submit Button - Dark Theme */
[data-theme="dark"] .auth-submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

[data-theme="dark"] .auth-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

[data-theme="dark"] .auth-submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .auth-submit-btn:active {
    transform: translateY(0);
}

/* Footer Text & Links - Dark Theme */
[data-theme="dark"] .auth-footer-text {
    color: #cbd5e1;
}

[data-theme="dark"] .auth-link {
    color: #60a5fa;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .auth-link::after {
    background: linear-gradient(to right, #60a5fa, #3b82f6);
}

[data-theme="dark"] .auth-link:hover {
    -webkit-text-fill-color: unset;
    color: #93c5fd;
}

/* Right Side - Social Section - Dark Theme */
[data-theme="dark"] .auth-social-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .auth-social-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

[data-theme="dark"] .social-content {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .social-title {
    color: #e2e8f0;
}

/* Google Button - Dark Theme */
[data-theme="dark"] .google-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid #475569;
    color: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
}

[data-theme="dark"] .google-btn::before {
    background: rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .google-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-color: #60a5fa;
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .google-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Password Reset Pages - Dark Theme */
[data-theme="dark"] .reset-password-container,
[data-theme="dark"] .reset-complete-page,
[data-theme="dark"] .change-password-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

[data-theme="dark"] .reset-form-wrapper,
[data-theme="dark"] .reset-complete-wrapper,
[data-theme="dark"] .password-form-wrapper {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid #334155;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .back-link {
    color: #94a3b8;
}

[data-theme="dark"] .back-link:hover {
    color: #60a5fa;
}

[data-theme="dark"] .reset-description,
[data-theme="dark"] .form-description,
[data-theme="dark"] .success-description {
    color: #cbd5e1;
}

[data-theme="dark"] .form-label {
    color: #f1f5f9;
}

[data-theme="dark"] .form-label svg {
    color: #94a3b8;
}

[data-theme="dark"] .form-control {
    background: rgba(51, 65, 85, 0.5);
    border: 2px solid #475569;
    color: #f1f5f9;
}

[data-theme="dark"] .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    background: rgba(51, 65, 85, 0.7);
}

[data-theme="dark"] .form-help-text {
    background: rgba(30, 41, 59, 0.6);
    color: #cbd5e1;
    border-left: 3px solid #60a5fa;
}

[data-theme="dark"] .success-icon {
    background: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .success-title,
[data-theme="dark"] .form-title {
    color: #f1f5f9;
}

[data-theme="dark"] .btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .btn-save-password {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .btn-save-password:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .btn-cancel-password {
    background: rgba(51, 65, 85, 0.5);
    color: #f1f5f9;
    border: 2px solid #475569;
}

[data-theme="dark"] .btn-cancel-password:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: #60a5fa;
}
