/* -----------------------------------------------------------
   Whispering Note – Global Stylesheet
   Fonts needed in every <head>:
   <link href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;500&family=League+Spartan:wght@700&display=swap" rel="stylesheet">
   ----------------------------------------------------------- */

/* ---------- Font Variables -------------------------------- */
:root {
    --font-display: 'League Spartan', sans-serif; /* headlines */
    --font-body:    'Barlow', sans-serif;         /* body, UI */
}

/* ---------- CSS Reset / Base ------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #000;          /* pure black */
    color: #fff;                     /* pure white */
    font-family: var(--font-body);   /* Barlow 400 default */
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Containers ------------------------------------ */
.container {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    width: 100%;
}

/* ---------- Typography ------------------------------------ */
.main-title {
    font-family: var(--font-display);      /* League Spartan */
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 60px;
}

/* ---------- Buttons --------------------------------------- */
.button-group {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.btn {
    font-family: var(--font-body);   /* Barlow */
    font-size: 18px;
    padding: 14px 50px;
    cursor: pointer;
    border-radius: 2px;
    font-weight: 500;               /* Barlow 500 */
    letter-spacing: 0.02em;
    text-transform: lowercase;
    min-width: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.btn-solid {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
}

.btn-solid:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Form Elements --------------------------------- */
.auth-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.text-input {
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 18px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 2px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.text-input::placeholder {
    color: #666;
}

.text-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* ---------- Animations ------------------------------------ */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* ---------- Responsive ------------------------------------ */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    .main-title {
        margin-bottom: 40px;
    }

    .button-group {
        flex-direction: column;
        gap: 20px;
    }

    .btn {
        width: 200px;
        padding: 12px 40px;
        font-size: 17px;
    }

    .text-input {
        font-size: 16px;
        padding: 14px 20px;
    }
}

/* --- Dashboard Layout --- */
.logout-btn {
    position: absolute;
    top: 40px;
    right: 80px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 8px 32px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}
.logout-btn:hover {
    background: #fff;
    color: #000;
}

.welcome-block {
    text-align: center;
    margin-bottom: 48px;
}

.welcome-text {
    font-family: var(--font-display);
    font-size: 3rem;          /* a bit larger since “YOU” line is gone */
    font-weight: 700;
    letter-spacing: -0.01em;
}

.welcome-you {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    display: block;
    margin-top: 0.1em;
    letter-spacing: -0.01em;
}

.dashboard-actions {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
}

.dashboard-btn {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    font-family: var(--font-body);
    font-size: 1.00rem;
    font-weight: 500;
    padding: 10px 30px;       /* space around text – adjust if needed */
    display: inline-flex;     /* shrink-to-fit width, keep flex centering */
    flex-direction: column;   /* keep two lines stacked */
    justify-content: center;
    align-items: center;
    line-height: 1.35;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background .75s, color .75s;
}

.dashboard-btn:hover,
.dashboard-btn:focus {
    background: #fff;
    color: #000;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: #111;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    width: 50vw;
    max-width: 600px;
    min-height: 600px;
    max-height: 200vh;
    padding: 0 0 32px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s;
    overflow: hidden;
}

@media (max-width: 900px) {
    .dashboard-actions {
        gap: 18px;
    }
    .logout-btn {
        right: 24px;
        top: 24px;
        padding: 8px 18px;
    }
}
@media (max-width: 600px) {
    .dashboard-actions {
        flex-direction: column;
        gap: 18px;
    }
    .dashboard-btn {
        min-width: 90vw;
        min-height: 70px;
        font-size: 1.1rem;
        padding: 18px 0;
    }
    .welcome-text { font-size: 2rem; }
    .welcome-you { font-size: 2.4rem; }
    .logout-btn { right: 12px; top: 12px; }
}

/* ---------- Utility --------------------------------------- */
.hidden    { display: none; }
.text-muted{ opacity: 0.6; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }