/* =========================================================
   GLOBAL
========================================================= */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #0d0f1a;
    font-family: Arial, sans-serif;
    color: white;
    height: 100%;
}

/* =========================================================
   PAGE CONTAINERS
========================================================= */
.page {
    display: none;          /* hidden by default */
    height: 100vh;          /* full viewport height */
    width: 100%;
    padding: 0;
    overflow: hidden;       /* avoid scrollbars as much as possible */
}

.page.active {
    display: flex;          /* only active page is visible */
    justify-content: center;
    align-items: center;
}

/* iPhone viewport tweak (safe, minimal) */
@supports (-webkit-touch-callout: none) {
    .page {
        height: -webkit-fill-available;
    }
}

h1, h2 {
    color: #ffd60a;
    text-shadow: 0 0 10px #00d4ff;
    margin-bottom: 20px;
}


/* =========================================================
   LANDING PAGE
========================================================= */
.landing-box {
    width: 90%;
    max-width: 350px;
    padding: 25px;
    background: #1a1d2e;
    border-radius: 12px;
    box-shadow: 0 0 25px #007aff;
    text-align: center;
}

/* LOGO */
.landing-logo {
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 50px;
    margin-bottom: 10px;
    text-shadow: 0 0 12px #00d4ff;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #ffd60a;
    text-shadow: 0 0 10px #00d4ff;
}

.logo-sub {
    font-size: 14px;
    color: #c7c7c7;
    margin-top: 6px;
}

/* INTRO */
.landing-intro {
    font-size: 15px;
    color: #d0d0d0;
    margin-bottom: 20px;
    line-height: 1.4;
}


/* =========================================================
   LOGIN + REGISTRATION BOXES
========================================================= */
.login-box {
    width: 90%;
    max-width: 350px;
    padding: 25px;
    background: #1a1d2e;
    border-radius: 10px;
    box-shadow: 0 0 20px #007aff;
    text-align: center;
}

input,
select {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: none;
    border-radius: 6px;
    background: #2a2d3f;
    color: white;
    font-size: 15px;
}

input::placeholder {
    color: #b5b5b5;
}


/* =========================================================
   BUTTONS
========================================================= */
button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #007aff;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #005fcc;
    transform: translateY(-2px);
}


/* =========================================================
   DASHBOARD BUTTON GROUPS
========================================================= */
.dash-buttons {
    margin-top: 20px;
    text-align: center;
}

.dash-buttons button {
    width: 220px;
    margin: 10px auto;
    padding: 14px;
    font-size: 17px;
}


/* =========================================================
   MOBILE TWEAKS
========================================================= */
@media (max-width: 480px) {
    .logo-icon {
        font-size: 40px;
    }

    .logo-text {
        font-size: 20px;
    }

    .landing-intro {
        font-size: 14px;
    }

    .dash-buttons button {
        width: 90%;
    }
}

html, body {
    margin: 0;
    padding: 0;
    background: #0d0f1a;
    font-family: Arial, sans-serif;
    color: white;
    height: 100%;
    overflow-x: hidden;   /* stops sideways wiggle */
    overscroll-behavior-y: contain; /* reduces bounce but doesn’t block gestures */
}
