/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f8f9ff;
    color: #111;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= GLASS NAVBAR ================= */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 40px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    background: rgba(255, 255, 255, 0.15); /* MUCH more transparent */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    box-shadow: inset 0 1px rgba(255,255,255,0.4);
}

.top-bar.scrolled {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.top-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4f46e5;
    font-weight: 600;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #4f46e5;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid #4f46e5;
    color: #4f46e5;
    background: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline:hover {
    background: #4f46e5;
    color: white;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 26px;
    cursor: pointer;
    color: #555;
    transition: 0.2s ease;
}

.close-btn:hover {
    color: #000;
    transform: scale(1.1);
}

/* ================= HERO ================= */
.hero {
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 100px 60px;

    background: linear-gradient(135deg, #eef2ff, #f8f9ff);
}

/* Glow blobs */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero::before {
    width: 300px;
    height: 300px;
    background: rgba(79, 70, 229, 0.4);
    top: -50px;
    left: -50px;
    animation: floatBlob 6s ease-in-out infinite;
}

.hero::after {
    width: 350px;
    height: 350px;
    background: rgba(99, 102, 241, 0.3);
    bottom: -80px;
    right: -80px;
    animation: floatBlob 8s ease-in-out infinite;
}

.hero > * {
    position: relative;
    z-index: 1;
}

@keyframes floatBlob {
    0% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
    100% { transform: translateY(0px); }
}

/* HERO TEXT */
.hero-text {
    max-width: 520px;
}

.badge {
    display: inline-block;
    background: #eef2ff;
    padding: 6px 12px;
    border-radius: 20px;
    color: #4f46e5;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 46px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero span {
    color: #4f46e5;
}

.hero p {
    color: #555;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-features {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    color: #666;
}


/* ================= DASHBOARD ================= */
.dashboard {
    width: 520px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;

    box-shadow: 0 30px 70px rgba(0,0,0,0.12);
    transition: transform 0.4s ease;
}

.dashboard:hover {
    transform: translateY(-6px);
}

/* HEADER */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dashboard-header i {
    cursor: pointer;
    color: #4f46e5;
}

/* BODY */
.dashboard-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* SIDEBAR */
.sidebar {
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.sidebar-item.active {
    background: #eef2ff;
    color: #4f46e5;
}

.sidebar-item:hover {
    background: #f1f5ff;
}

/* FILES */
.files {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* FILE CARD */
.file-card {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #f8f9ff;
    padding: 10px;
    border-radius: 10px;

    font-size: 14px;
    transition: all 0.3s ease;
}

.file-card i {
    width: 18px;
    height: 18px;
    color: #4f46e5;
}

.file-card:hover {
    background: #eef2ff;
    transform: translateX(4px);
}

/* ================= FEATURES ================= */
.features h3 {
    text-align: center;
    padding: 70px 40px;
    font-size: 30px;
    margin-bottom: 30px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ================= ICONS ================= */
.icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.icon i {
    width: 28px;
    height: 28px;
    color: white;
}

.green { background: #22c55e; }
.blue { background: #4169E1; }
.orange { background: #FF9900; }

/* ================= STEPS ================= */
.steps {
    text-align: center;
    padding: 80px 40px;
}

.steps h3 {
    margin-bottom: 50px;
}

.step-container {
    display: flex;
    justify-content: center;
    gap: 70px;
}

.step {
    width: 200px;
    text-align: center;
}

.step i {
    display: block;
    margin: 0 auto 12px;
    width: 40px;
    height: 40px;
    color: #4f46e5;
}

/* ================= CTA ================= */
.cta {
    margin: 60px auto;
    max-width: 1100px;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta .btn-outline {
    border: 1px solid white;
    color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: #4f46e5;
}

/* ================= AUTH MODAL ================= */
.auth-modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.4s ease;
    z-index: 2000;
}

.auth-modal.show {
    opacity: 1;
    pointer-events: all;
}

/* POPUP BOX */
.auth-box {
    width: 70%;
    max-width: 900px;
    height: 500px;

    background: white;
    border-radius: 20px;

    display: flex;
    overflow: hidden;
    position: relative;

    /* POP animation only */
    transform: scale(0.9);
    opacity: 0;

    transition: all 0.5s ease;
}

.auth-modal.show .auth-box {
    transform: scale(1);
    opacity: 1;
}

/* ================= LEFT PANEL ================= */
.auth-left {
    width: 40%;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    padding: 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-left h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.auth-left p {
    opacity: 0.9;
}

/* ================= RIGHT PANEL ================= */
.auth-right {
    width: 60%;
    padding: 40px;
}

/* ================= FORM ================= */
.form {
    display: none;
}

.form.active {
    display: block;
}

.form input {

    width: 100%;

    padding: 12px;

    margin-bottom: 18px;

    border-radius: 10px;

    border: 1px solid #ddd;

    font-size: 15px;
}
.form .btn-primary {

    width: 100%;

    margin-top: 5px;
}
.divider {

    text-align: center;

    margin: 18px 0;

    color: #666;

    font-size: 14px;
}
.show-password {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

    color: #555;

    margin-bottom: 16px;

    line-height: 1;
}

.show-password input {

    width: auto;
    margin: 0;
}
/* ================= GOOGLE BUTTON ================= */
.google-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    cursor: pointer;
    transition: 0.3s ease;
}

.google-btn:hover {
    background: #f8f9ff;
}

/* ================= SWITCH TEXT ================= */
.switch span {
    color: #4f46e5;
    cursor: pointer;
}

/* ================= CLOSE BUTTON ================= */
.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;

    font-size: 26px;
    cursor: pointer;
    color: #555;

    transition: 0.2s ease;
}

.close-btn:hover {
    color: #000;
    transform: scale(1.1);
}

/* ================= FOOTER ================= */
footer {
    background: #111;
    color: white;
    padding: 30px;
    text-align: center;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .cards, .step-container {
        flex-direction: column;
        align-items: center;
    }

    .cta {
        flex-direction: column;
        gap: 20px;
    }
}
/* ================= SCROLL ANIMATION ================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}
/* single smooth spring */
body.spring {
    animation: springNudge 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

@keyframes springNudge {
    0%   { transform: translateY(0); }

    /* SLOW pull */
    70%  { transform: translateY(-6px); }

    /* smooth return */
    100% { transform: translateY(0); }
}
html, body {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* ===================================================== */
/* ================= PASSWORD TOGGLE =================== */
/* ===================================================== */

.password-wrapper {

    position: relative;

    width: 100%;
}


/* INPUT */

.password-wrapper input {

    width: 100%;

    padding: 12px;

    border-radius: 10px;

    border: 1px solid #ddd;

    font-size: 15px;
}



/* ================= FLASH MESSAGES ================= */

.flash-container {

    position: fixed;

    top: 90px;

    right: 20px;

    z-index: 5000;

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.flash {

    padding: 14px 18px;

    border-radius: 12px;

    color: white;

    font-weight: 500;

    min-width: 280px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    animation: slideIn 0.4s ease;
}

.flash.success {

    background: #22c55e;
}

.flash.delete {

    background: #ef4444;
}

@keyframes slideIn {

    from {

        opacity: 0;

        transform: translateX(30px);
    }

    to {

        opacity: 1;

        transform: translateX(0);
    }
}
@media (max-width: 768px) {

    nav {
        padding: 18px 20px !important;
        flex-wrap: wrap;
        gap: 14px;
    }

    .logo {
        font-size: 28px !important;
    }

    .nav-links {
        gap: 16px !important;
        font-size: 15px;
    }

    .hero {
        padding: 40px 20px !important;
        text-align: center;
    }

    .hero h1 {
        font-size: 54px !important;
        line-height: 1.1;
    }

    .hero p {
        font-size: 18px !important;
    }

    .hero-buttons {

        flex-direction: column;

        width: 100%;

        align-items: center;

        gap: 16px;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 280px;
    }

    .hero-features {

        flex-wrap: wrap;

        justify-content: center;

        gap: 20px;
    }
}
@media (max-width: 768px) {

    .login-container {

        width: 92% !important;

        height: auto !important;

        flex-direction: column !important;

        border-radius: 28px !important;

        overflow: hidden;
    }

    .login-left {

        width: 100% !important;

        min-height: 180px;

        padding: 30px;
    }

    .login-right {

        width: 100% !important;

        padding: 30px 24px !important;
    }

    .login-right input {

        width: 100% !important;
    }

    .google-btn {

        width: 100% !important;
    }
}