/**
 * Auth Pages Stylesheet
 * Modern, clean design for login, register, and password reset pages
 */

:root {
    --primary: #00BCD4;
    --primary-dark: #00ACC1;
    --primary-light: #B2EBF2;
    --secondary: #0097A7;
    --success: #28a745;
    --success-soft: #d4edda;
    --info: #17a2b8;
    --info-soft: #d1ecf1;
    --warning: #ffc107;
    --warning-soft: #fff3cd;
    --danger: #dc3545;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --text-muted: #6c757d;
    --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Auth Page Layout */
.auth-page {
    background: #00BCD4;
    position: relative;
    overflow-x: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.05)" stroke-width="1" fill="none"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.auth-wrapper {
    position: relative;
    z-index: 1;
}

/* Top Bar */
.auth-topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-logo img {
    max-width: 220px;
    height: auto;
}

.auth-topbar .auth-topbar-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Auth Content */
.auth-content {
    min-height: calc(100vh - 140px);
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.auth-content .container {
    max-width: 1200px;
}

.auth-content .row {
    margin: 0;
}

/* Hero Section */
.auth-hero {
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.auth-hero-content {
    max-width: 540px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
}

.text-gradient {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.auth-hero h1 {
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
}

.auth-hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Feature Cards */
.feature-card {
    padding: 1.25rem 1rem !important;
    background: rgba(0, 150, 167, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.feature-card:hover {
    background: rgba(0, 188, 212, 0.5) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.25) !important;
}

.feature-icon svg,
.feature-icon i {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-card h6 {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.feature-card small {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Stats */
.stat-item {
    padding: 1rem 0.75rem;
    background: rgba(0, 150, 167, 0.35) !important;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.stat-number {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff !important;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stat-item small {
    color: rgba(255, 255, 255, 1) !important;
    font-size: 0.7rem;
    display: block;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Auth Form Card */
.auth-form-wrapper {
    padding: 1rem;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.auth-form-wrapper .card {
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.card-body {
    background: #fff;
}

/* Form Elements */
.form-label {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.15);
}

.input-group-text {
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
}

.input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active {
    background: #00BCD4 !important;
    border: none !important;
    border-color: #00BCD4 !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    background: #00ACC1 !important;
    border-color: #00ACC1 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4) !important;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    border: 2px solid #00BCD4 !important;
    color: #00BCD4 !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-outline-primary:hover {
    background: #00BCD4 !important;
    border-color: #00BCD4 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4) !important;
}

.btn-light {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.btn-light:hover {
    background: #e9ecef;
}

/* Soft Backgrounds */
.bg-primary-soft {
    background-color: rgba(0, 188, 212, 0.1) !important;
}

.bg-success-soft {
    background-color: var(--success-soft) !important;
}

.bg-info-soft {
    background-color: var(--info-soft) !important;
}

.bg-warning-soft {
    background-color: var(--warning-soft) !important;
}

/* Icons */
.icon-xs {
    width: 16px;
    height: 16px;
}

.icon-sm {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background: #fff;
    z-index: 1;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: var(--success-soft);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
.auth-footer {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-hero {
        display: none;
    }

    .auth-form-wrapper {
        padding: 0.5rem;
        min-height: auto;
    }

    .card-body {
        padding: 2rem 1.5rem !important;
    }

    .auth-content {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .auth-topbar .fw-bold {
        font-size: 1rem;
    }

    .auth-form-wrapper .card {
        border-radius: 12px;
    }

    .auth-form-wrapper {
        min-height: auto;
    }

    .card-body {
        padding: 1.5rem 1rem !important;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-wrapper .card {
    animation: fadeInUp 0.6s ease-out;
}

.auth-hero-content {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card {
    opacity: 1;
    animation: fadeInUp 0.5s ease-out forwards;
}

.col-6:nth-child(1) .feature-card { animation-delay: 0.1s; }
.col-6:nth-child(2) .feature-card { animation-delay: 0.2s; }
.col-6:nth-child(3) .feature-card { animation-delay: 0.3s; }
.col-6:nth-child(4) .feature-card { animation-delay: 0.4s; }

/* Loading State */
.btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Custom Checkbox */
.form-check-input {
    border-radius: 4px;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Links */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark) !important;
}

/* Invalid Feedback */
.invalid-feedback {
    font-size: 0.875rem;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: none;
}

/* ===================================
   LANDING PAGE SECTIONS
   =================================== */

/* Feature Boxes */
.feature-box {
    transition: all 0.3s ease;
    border-radius: 12px;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Feature Boxes */
.feature-box-enhanced {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.feature-box-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.2);
    border-color: rgba(0, 188, 212, 0.3);
}

.feature-icon-enhanced {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Trust Badges */
.trust-badge {
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-3px);
}

.trust-badge .fw-bold {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* Destination Cards */
.destination-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.destination-image {
    height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.destination-card:hover .destination-image {
    transform: scale(1.05);
}

.destination-overlay {
    width: 100%;
}

.destination-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Stats Boxes */
.stat-box {
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h2 {
    font-size: 2.5rem;
}

/* CTA Section */
.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer-section {
    background: #1a1a1a !important;
}

.footer-section a:hover {
    color: #00BCD4 !important;
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #00BCD4 !important;
}

/* Responsive for Landing Sections */
@media (max-width: 767.98px) {
    .destination-image {
        height: 180px;
    }

    .stat-box h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }
}
