/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --violet: #8b5cf6;
    --violet-light: #a78bfa;
    --purple: #6d28d9;
    --deep-purple: #2e1065;

    --text: #ffffff;
    --muted: #b9acd4;

    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.14);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

html,
body {
    min-height: 100%;
}

body {
    color: var(--text);
    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(139, 92, 246, 0.35),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 90%,
            rgba(109, 40, 217, 0.35),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #090412,
            #18082f 45%,
            #0b0418
        );
    overflow-x: hidden;
}


/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            transparent 20%,
            rgba(0, 0, 0, 0.25)
        );
}

.bubble {
    position: absolute;
    display: block;
    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255, 255, 255, 0.3),
            rgba(167, 139, 250, 0.08) 40%,
            rgba(139, 92, 246, 0.02)
        );

    border: 1px solid rgba(255, 255, 255, 0.14);

    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.05),
        0 0 60px rgba(139, 92, 246, 0.08);

    filter: blur(0.2px);

    animation:
        floatBubble 16s ease-in-out infinite;
}

.bubble-1 {
    width: 180px;
    height: 180px;
    left: 7%;
    bottom: -100px;
    animation-duration: 18s;
}

.bubble-2 {
    width: 70px;
    height: 70px;
    left: 24%;
    bottom: -80px;
    animation-delay: 3s;
    animation-duration: 12s;
}

.bubble-3 {
    width: 250px;
    height: 250px;
    right: 5%;
    bottom: -150px;
    animation-delay: 1s;
    animation-duration: 22s;
}

.bubble-4 {
    width: 110px;
    height: 110px;
    right: 30%;
    bottom: -120px;
    animation-delay: 6s;
    animation-duration: 15s;
}

.bubble-5 {
    width: 45px;
    height: 45px;
    left: 45%;
    bottom: -50px;
    animation-delay: 8s;
    animation-duration: 11s;
}

.bubble-6 {
    width: 130px;
    height: 130px;
    left: 70%;
    bottom: -130px;
    animation-delay: 4s;
    animation-duration: 17s;
}

@keyframes floatBubble {
    0% {
        transform:
            translate3d(0, 0, 0)
            scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.65;
    }

    50% {
        transform:
            translate3d(35px, -55vh, 0)
            scale(1);
    }

    100% {
        transform:
            translate3d(-60px, -115vh, 0)
            scale(1.15);
        opacity: 0;
    }
}


/* =========================
   LOGO
========================= */

.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    font-weight: 800;
    font-size: 18px;

    background:
        linear-gradient(
            135deg,
            #c4b5fd,
            #8b5cf6 50%,
            #6d28d9
        );

    box-shadow:
        0 8px 25px rgba(139, 92, 246, 0.35);
}


/* =========================
   LOGIN
========================= */

.auth-page {
    min-height: 100vh;
}

.auth-container {
    position: relative;
    z-index: 1;

    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 30px 20px;
}

.auth-card {
    width: min(100%, 430px);

    padding: 42px;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.045)
        );

    border: 1px solid var(--glass-border);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.45),
        inset 0 1px rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    animation: cardAppear 0.8s ease forwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card > .logo {
    margin-bottom: 55px;
}

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

.auth-header h1 {
    font-size: clamp(30px, 5vw, 38px);
    letter-spacing: -0.045em;
    margin-bottom: 9px;
}

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


/* =========================
   FORM
========================= */

.input-group {
    margin-bottom: 21px;
}

.input-group label {
    display: block;

    color: #d9d0e8;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 8px;
}

.input-group input {
    width: 100%;

    padding: 14px 15px;

    border-radius: 13px;

    color: white;
    background: rgba(0, 0, 0, 0.17);

    border: 1px solid rgba(255, 255, 255, 0.11);

    outline: none;

    font-size: 14px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.input-group input::placeholder {
    color: #746989;
}

.input-group input:focus {
    border-color: rgba(167, 139, 250, 0.75);

    background: rgba(0, 0, 0, 0.24);

    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.12);
}

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

.password-label button {
    border: 0;
    background: transparent;

    color: var(--violet-light);

    cursor: pointer;

    font-size: 12px;
    font-weight: 600;
}

.login-options {
    margin: 4px 0 25px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);

    font-size: 13px;

    cursor: pointer;
}

.remember input {
    accent-color: var(--violet);
}


/* =========================
   BUTTON
========================= */

.primary-button {
    width: 100%;

    border: 0;
    border-radius: 13px;

    padding: 15px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: white;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #a78bfa,
            #8b5cf6 45%,
            #6d28d9
        );

    box-shadow:
        0 12px 30px rgba(109, 40, 217, 0.3);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.primary-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 38px rgba(109, 40, 217, 0.45);
}

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

.arrow {
    font-size: 20px;
    transition: transform 0.2s;
}

.primary-button:hover .arrow {
    transform: translateX(4px);
}

.login-message {
    min-height: 18px;

    margin-top: 14px;

    text-align: center;

    font-size: 13px;
    color: #c4b5fd;
}

.auth-footer {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 35px;

    color: #75698b;

    font-size: 11px;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-page {
    min-height: 100vh;
}

.navbar {
    position: relative;
    z-index: 2;

    height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6vw;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(10, 4, 20, 0.25);

    backdrop-filter: blur(18px);
}

.logout-button {
    padding: 9px 15px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    color: #d7ccef;
    background: rgba(255, 255, 255, 0.05);

    cursor: pointer;

    transition: 0.2s;
}

.logout-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-container {
    position: relative;
    z-index: 1;

    width: min(1100px, 90%);

    margin: 0 auto;

    padding: 90px 0;
}

.welcome {
    margin-bottom: 50px;
}

.eyebrow {
    color: var(--violet-light);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.18em;

    margin-bottom: 12px;
}

.welcome h1 {
    font-size: clamp(40px, 7vw, 65px);

    letter-spacing: -0.06em;

    margin-bottom: 8px;
}

.welcome h1 span {
    color: #a78bfa;
}

.welcome > p:last-child {
    color: var(--muted);
}


/* =========================
   DASHBOARD CARDS
========================= */

.dashboard-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.dashboard-card {
    position: relative;

    min-height: 190px;

    padding: 27px;

    border-radius: 22px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.095),
            rgba(255, 255, 255, 0.035)
        );

    backdrop-filter: blur(20px);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s,
        border-color 0.25s;
}

.dashboard-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(167, 139, 250, 0.35);
}

.large-card {
    grid-column: span 2;

    min-height: 220px;

    display: flex;
    align-items: center;
    gap: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 15px;

    font-size: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(167, 139, 250, 0.3),
            rgba(109, 40, 217, 0.2)
        );

    color: #d8ccff;
}

.dashboard-card h2 {
    font-size: 19px;

    letter-spacing: -0.025em;

    margin-bottom: 7px;
}

.dashboard-card p {
    color: var(--muted);
    font-size: 13px;
}

.card-arrow {
    position: absolute;

    right: 27px;
    top: 50%;

    transform: translateY(-50%);

    color: #b8a6db;

    font-size: 25px;
}

.storage-bar {
    width: 100%;

    height: 6px;

    margin-top: 28px;

    overflow: hidden;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);
}

.storage-bar span {
    display: block;

    width: 18%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #8b5cf6,
            #c4b5fd
        );
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 25px;

    color: #bfb3d4;

    font-size: 12px;
}

.status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #a78bfa;

    box-shadow:
        0 0 12px #a78bfa;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

    .auth-card {
        padding: 30px 23px;
        border-radius: 23px;
    }

    .auth-card > .logo {
        margin-bottom: 42px;
    }

    .navbar {
        padding: 0 20px;
    }

    .navbar .logo span {
        display: none;
    }

    .dashboard-container {
        padding: 60px 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .large-card {
        grid-column: span 1;

        min-height: 180px;
    }

    .dashboard-card {
        min-height: 170px;
    }
}

