/* =====================================================
   BLOODMOON SIM MANAGER
   GLOBAL STYLES
   ===================================================== */


:root {
    --bg: #f4f7fb;

    --surface:
        rgba(255, 255, 255, 0.94);

    --surface-soft:
        #f8fafc;

    --text:
        #172033;

    --muted:
        #6b7280;

    --border:
        #e4e9f1;

    --primary:
        #5267e9;

    --primary-dark:
        #4054d5;

    --success:
        #20a36a;

    --danger:
        #d84f5f;

    --shadow:
        0 24px 70px
        rgba(30, 42, 75, 0.11);
}


/* =====================================================
   RESET
   ===================================================== */


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;

    min-height: 100%;
}


body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(82, 103, 233, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(92, 197, 168, 0.09),
            transparent 30%
        ),
        var(--bg);

    color:
        var(--text);
}


/* =====================================================
   GLOBAL PAGE
   ===================================================== */


.page-shell {
    min-height: 100vh;

    display: flex;

    flex-direction: column;
}


/* =====================================================
   BRAND
   ===================================================== */


.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        28px
        38px;
}


.brand-mark {
    width: 44px;
    height: 44px;

    flex:
        0
        0
        44px;

    border-radius: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #6578f2,
            #4659d8
        );

    color: #fff;

    font-weight: 800;

    font-size: 14px;

    letter-spacing: 0.5px;

    box-shadow:
        0 10px 25px
        rgba(82, 103, 233, 0.28);
}


.brand-name {
    color:
        var(--text);

    font-weight: 800;

    font-size: 17px;

    line-height: 1.1;
}


.brand-subtitle {
    margin-top: 3px;

    color:
        var(--muted);

    font-size: 12px;
}


/* =====================================================
   GLOBAL TYPOGRAPHY
   ===================================================== */


.eyebrow {
    margin-bottom: 12px;

    color:
        var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


h1 {
    margin:
        0
        0
        12px;

    font-size: 31px;

    line-height: 1.15;

    letter-spacing: -0.8px;
}


p {
    margin: 0;

    color:
        var(--muted);

    font-size: 15px;

    line-height: 1.65;
}


/* =====================================================
   ALERTS
   ===================================================== */


.alert {
    margin-bottom: 22px;

    padding:
        13px
        15px;

    border-radius: 12px;

    font-size: 13px;

    font-weight: 650;
}


.alert-error {
    background:
        rgba(216, 79, 95, 0.08);

    color:
        #ad3442;

    border:
        1px solid
        rgba(216, 79, 95, 0.17);
}


/* =====================================================
   GENERIC SECONDARY BUTTON
   ===================================================== */


.btn-secondary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 22px;

    min-height: 43px;

    padding:
        0
        18px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    background: #fff;

    color: #4b5563;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.btn-secondary:hover {
    background: #f8fafc;

    border-color: #d5dbe5;

    transform:
        translateY(-1px);
}


/* =====================================================
   LOGIN PAGE
   ===================================================== */


.login-wrapper {
    flex: 1;

    display: flex;

    justify-content: center;
    align-items: center;

    padding:
        30px
        20px
        70px;
}


.login-card {
    width: 100%;

    max-width: 470px;

    padding: 42px;

    background:
        var(--surface);

    border:
        1px solid
        rgba(255, 255, 255, 0.95);

    border-radius: 24px;

    box-shadow:
        var(--shadow);

    backdrop-filter:
        blur(15px);
}


.login-header {
    margin-bottom: 30px;
}


.login-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* =====================================================
   LOGIN FIELDS
   ===================================================== */


.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.form-group label {
    color: #374151;

    font-size: 13px;

    font-weight: 700;
}


.form-group input {
    width: 100%;

    padding:
        14px
        16px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background: #fff;

    color:
        var(--text);

    outline: none;

    font-size: 15px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


.form-group input::placeholder {
    color: #a9b0bd;
}


.form-group input:focus {
    border-color:
        rgba(82, 103, 233, 0.65);

    box-shadow:
        0 0 0 4px
        rgba(82, 103, 233, 0.10);
}


/* =====================================================
   LOGIN BUTTON
   ===================================================== */


.btn-login {
    margin-top: 4px;

    min-height: 50px;

    padding:
        0
        18px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border: 0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #fff;

    font-size: 15px;

    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(82, 103, 233, 0.22);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.btn-login:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 14px 30px
        rgba(82, 103, 233, 0.28);
}


.btn-arrow {
    font-size: 21px;

    line-height: 1;
}


/* =====================================================
   LOGIN SECURITY MESSAGE
   ===================================================== */


.login-footer {
    margin-top: 26px;

    padding-top: 20px;

    display: flex;

    align-items: center;

    gap: 8px;

    border-top:
        1px solid
        var(--border);

    color:
        var(--muted);

    font-size: 12px;
}


.secure-dot {
    width: 8px;
    height: 8px;

    flex:
        0
        0
        8px;

    border-radius: 50%;

    background:
        var(--success);

    box-shadow:
        0 0 0 4px
        rgba(32, 163, 106, 0.10);
}


/* =====================================================
   GLOBAL FOOTER
   ===================================================== */


.page-footer {
    margin-top: auto;

    padding:
        20px
        30px
        25px;

    text-align: center;

    color: #9299a6;

    font-size: 11px;
}


/* =====================================================
   MOBILE
   ===================================================== */


@media (max-width: 600px) {

    .brand {
        padding:
            20px
            22px;
    }


    .login-wrapper {
        align-items: flex-start;

        padding:
            25px
            14px
            50px;
    }


    .login-card {
        padding:
            30px
            22px;

        border-radius: 20px;
    }


    h1 {
        font-size: 27px;
    }

}