/* Core Oppty Variables */
:root {
    --primary-color: #F97316;
    --primary-light: #FFF7ED;
    --primary-hover: #EA580C;
    --text-main: #111827;
    --text-muted: #6B7280;
    --bg-main: #FAFAFA;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --danger-light: #FEE2E2;
    --danger: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    
}

.nav-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Updated Navbar Actions --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none; /* Added to prevent underline on link buttons */
}

.nav-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link-btn i {
    font-size: 20px;
}

.nav-link-btn:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Responsive adjustment for the new buttons */
@media (max-width: 768px) {
    .nav-actions {
        gap: 8px;
    }
    
    .nav-link-btn {
        padding: 8px;
    }

    /* Hide text on very small screens, keep icons */
    .nav-link-btn span, 
    #openAdminModalBtn span {
        display: none;
    }
}

.logo-img {
    width: 120px;
    height: 32px;
    margin-right: 8px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 28px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--bg-main);
    border-color: var(--text-muted);
}

.btn-block {
    width: 100%;
    padding: 12px;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 24px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 24px;
}

/* Login Card */
.login-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

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

.card-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 18px;
}

.input-with-icon .form-control {
    padding-left: 42px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: var(--bg-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.font-normal { font-weight: 400 !important; color: var(--text-muted) !important; cursor: pointer; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover { color: var(--danger); }

.modal-body { padding: 24px; }

.admin-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--danger-light);
    color: #B91C1C;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.admin-warning i { font-size: 20px; }

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background-color: #F8FAFC;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* Core Oppty Variables */
:root {
    --primary-color: #F97316;
    --primary-light: #FFF7ED;
    --primary-hover: #EA580C;
    --text-main: #0F172A; /* Slightly deeper navy for modern contrast */
    --text-muted: #64748B;
    --bg-main: #F8FAFC; /* Softer, cooler off-white */
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    --danger-light: #FEF2F2;
    --danger: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Modern Ambient Gradients */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background-color: #FFEDD5; /* Light orange glow */
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background-color: #E0F2FE; /* Light blue contrast glow */
    bottom: -200px;
    right: -100px;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 30px;
}

/* Premium Buttons */
.btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(249, 115, 22, 0.35);
}

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

.btn-outline {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background-color: var(--bg-main);
    border-color: #CBD5E1;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 24px;
    position: relative;
    z-index: 10;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Upgraded Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary-light);
    border-radius: 50%;
    color: var(--primary-color);
}

.feature-icon-wrapper i {
    font-size: 16px;
    font-weight: bold;
}

/* Upgraded Login Card */
.login-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.6);
}

.card-header {
    margin-bottom: 36px;
}

.card-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-link:hover { color: var(--primary-hover); }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 20px;
    transition: color 0.2s;
}

.input-with-icon .form-control {
    padding-left: 46px;
}

/* Inputs are focused on slightly interacting with the icon color */
.input-with-icon .form-control:focus + i,
.input-with-icon .form-control:focus ~ i {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: var(--bg-card);
    color: var(--text-main);
}

.form-control::placeholder {
    color: #94A3B8;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
    border-radius: 4px;
}

.font-normal { 
    font-weight: 500 !important; 
    color: var(--text-muted) !important; 
    cursor: pointer; 
    font-size: 14px;
}

.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* Enhanced Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    border-radius: 6px;
}

.close-modal:hover { color: var(--danger); }

.modal-body { padding: 32px; }

.admin-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--danger-light);
    color: #991B1B;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-warning i { font-size: 20px; color: var(--danger); }

.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border-color);
    background-color: #F8FAFC;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive Updates */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title { font-size: 44px; }
    
    .features-list {
        align-items: flex-start;
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .login-card { padding: 32px 24px; }
    .shape-1, .shape-2 { display: none; } /* Hide heavy blobs on mobile */
}
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 40px;
    }
    
    .features-list {
        align-items: flex-start;
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .login-card { padding: 24px; }
}