:root {
    --bg1: #f5f8ff;
    --bg2: #eef2ff;
    --accent1: #1891C8;
    --accent2: #00b4ff;
    --muted: rgba(0, 0, 0, 0.65);
}

/* ===============================
   GLOBAL RESET
================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #F6F6F7;
        /*radial-gradient(600px 400px at 10% 10%, rgba(0, 119, 255, 0.08), transparent 12%),
        radial-gradient(600px 400px at 90% 90%, rgba(0, 180, 255, 0.08), transparent 12%),
        linear-gradient(180deg, var(--bg1), var(--bg2));*/
    color: #1f2937;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===============================
   HEADER
================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 6%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.brand h1 {
    font-size: 18px;
    color: var(--accent1);
}

nav a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 10px;
    transition: 0.2s;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent1);
}

.mobile-menu-btn {
    display: none;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
}

main {
    padding-top: 100px;
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===============================
   HERO SECTION
================================ */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 60px 6%;
    gap: 40px;
}

.hero-left {
    flex: 1 1 480px;
    max-width: 650px;
    animation: fadeUp 0.9s ease forwards;
}

.hero-left .eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero-left h2 {
    font-size: 42px;
    line-height: 1.1;
    color: var(--accent1);
    margin-bottom: 12px;
}

.hero-left p {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 28px;
    font-size: 16px;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp 1.1s ease forwards;
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 119, 255, 0.25);
    transition: transform 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    transition: color 0.2s, border 0.2s;
}

.btn-ghost:hover {
    color: var(--accent1);
    border-color: var(--accent1);
}

/* ===============================
   FEATURES
================================ */
.features {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    animation: fadeUp 1.3s ease forwards;
}

.feature {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px;
    border-radius: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature:hover {
    transform: translateY(-3px);
}

.feature i {
    font-size: 22px;
    color: var(--accent1);
    background: rgba(0, 119, 255, 0.1);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature h4 {
    margin: 0;
    font-size: 15px;
}

.feature p {
    margin: 2px 0 0;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
}

/* ===============================
   HERO IMAGE
================================ */
.hero-right {
    flex: 1 1 420px;
    text-align: center;
    animation: fadeIn 1.5s ease forwards;
}

.hero-right img {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

/* ===============================
   LOGIN SECTION
================================ */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 6%;
}

.login-box {
    width: 420px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    text-align: center;
    animation: fadeUp 1s ease forwards;
    transition: transform 0.6s ease;
}

.login-box:hover {
    transform: translateY(-6px);
}

.login-box h3 {
    color: var(--accent1);
    font-size: 22px;
    margin-bottom: 6px;
}

.login-box p.sub {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent1);
    box-shadow: 0 0 12px rgba(0, 119, 255, 0.15);
}

.form-group i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.45);
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 119, 255, 0.3);
}

.error {
    margin-top: 14px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
    font-size: 14px;
}

.meta {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
}

/* ===============================
   FOOTER
================================ */
footer {
    text-align: center;
    padding: 28px 6%;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.6);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    nav {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .login-box {
        padding: 24px;
    }
}

/* ===============================
   MOBILE PANEL
================================ */
.mobile-panel {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-panel a {
    display: block;
    color: var(--muted);
    padding: 8px 12px;
    text-decoration: none;
}

.mobile-panel a:hover {
    color: var(--accent1);
}

/* ===============================
   TOAST SYSTEM (LIGHT MODE)
================================ */
.toast-container {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.custom-toast {
    min-width: 340px;
    max-width: 420px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    animation: toast-float-in 0.55s cubic-bezier(.2,.8,.2,1);
}

.toast-header,
.toast-body {
    padding: 0.85rem 1.1rem;
}

.toast-progress {
    height: 3px;
    background: linear-gradient(to right, #0077ff, #00b4ff);
    animation: toast-progress 6s linear forwards;
}

@keyframes toast-float-in {
    from {
        transform: translateX(120%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-progress {
    from { width: 100%; }
    to   { width: 0%; }
}


/* ===============================
   LIGHT MODE FOOTER
================================ */
.app-footer {
    text-align: center;
    padding: 28px 6%;
    margin-top: 4rem;

    background: rgba(255, 255, 255, 0.08); /* universal glass tone */
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);

    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.65);

    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04);
}

.app-footer strong {
    color: #0f172a; /* slate-900 */
    font-weight: 600;
}

.app-footer small {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
}

.footer-heart {
    color: #dc2626; /* elegant red */
    margin: 0 3px;
    vertical-align: middle;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

/* Prevent mobile horizontal overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 600px) {

    /* Fix toast width */
    .custom-toast {
        width: calc(100vw - 2rem);
        min-width: auto;
        max-width: 100%;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
    }

    /* Fix hero layout */
    .hero-left,
    .hero-right {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Reduce side padding */
    header,
    .hero,
    .login-section,
    footer,
    .app-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

