:root {
    /* Global OSZIP background */
    --oszip-bg-text: #1f2937;
    --oszip-bg-muted: #6b7280;
    --oszip-bg-border: #e5e7eb;
    --oszip-bg-ring: rgba(239, 68, 68, 0.25);
    --oszip-bg-accent: #dc2626;
    --oszip-bg-accent2: #f97316;
    --oszip-bg-danger: #b91c1c;
    --oszip-bg-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

* {
    box-sizing: border-box;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* GLOBAL SITE BACKGROUND */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color: var(--oszip-bg-text);
    background: radial-gradient(900px 600px at 15% 15%, rgba(220, 38, 38, 0.15), transparent 60%), radial-gradient(900px 600px at 85% 20%, rgba(239, 68, 68, 0.17), transparent 60%), linear-gradient(160deg, #ffffff, #faf6f6);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

    /* GLOBAL WATERMARK */
    body::before {
        content: "OSZIP";
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22vw;
        font-weight: 800;
        letter-spacing: 1vw;
        color: rgba(194, 194, 194, 0.1);
        pointer-events: none;
        user-select: none;
        z-index: 0;
    }

/* Keep actual page content above watermark */
header,
.navbar,
footer,
.footer {
    position: relative;
    z-index: 1;
}


.modal {
    position: fixed !important;
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

body > .container,
body > .container-fluid {
    flex: 1 0 auto;
}

footer,
.footer {
    position: relative !important;
    bottom: auto !important;
    width: auto !important;
    white-space: normal !important;
    line-height: normal !important;
    flex-shrink: 0;
    z-index: 1;
}


.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.nav-link img {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-link:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* NAVBAR */
.oszip-navbar {
    background-color: #FF495C !important;
    border-color: #53181E !important;
}

    .oszip-navbar .navbar-brand {
        color: #FFCFD5 !important;
    }

        .oszip-navbar .navbar-brand:hover,
        .oszip-navbar .navbar-brand:focus {
            color: #fff !important;
            background-color: transparent;
        }

    .oszip-navbar .navbar-text {
        color: #FFCFD5 !important;
    }

    .oszip-navbar .nav-link {
        color: #FFCFD5 !important;
    }

        .oszip-navbar .nav-link:hover,
        .oszip-navbar .nav-link:focus {
            color: #fff !important;
            background-color: transparent;
        }

        .oszip-navbar .nav-link.active,
        .oszip-navbar .show > .nav-link {
            color: #fff !important;
            background-color: #2A0C0F;
            border-radius: 0.375rem;
        }

        .oszip-navbar .nav-link.disabled {
            color: #CC3A4A !important;
            background-color: transparent;
        }

    .oszip-navbar .navbar-toggler {
        border-color: #333;
    }

        .oszip-navbar .navbar-toggler:hover,
        .oszip-navbar .navbar-toggler:focus {
            background-color: #A32E3B;
        }

    .oszip-navbar .navbar-collapse,
    .oszip-navbar .navbar-form {
        border-color: #82252F;
    }

    .oszip-navbar .btn-link {
        color: #FFA1AC;
    }

        .oszip-navbar .btn-link:hover,
        .oszip-navbar .btn-link:focus {
            color: #fff;
        }

    .oszip-navbar .btn-outline-light {
        border-color: #FFCFD5;
        color: #FFCFD5;
    }

        .oszip-navbar .btn-outline-light:hover,
        .oszip-navbar .btn-outline-light:focus {
            background-color: rgba(255, 255, 255, 0.15);
            border-color: #ffffff;
            color: #ffffff;
        }



/* ===========================
   LOGIN PAGE ONLY
   =========================== */

.login-page {
    display: grid;
    place-items: center;
    padding: 32px 16px;
    min-height: 100vh;
}

    .login-page .wrap {
        width: 100%;
        max-width: 420px;
        animation: login-enter 0.55s ease-out both;
        position: relative;
        z-index: 1;
    }

@keyframes login-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-page .card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.65);
    border-radius: 18px;
    box-shadow: var(--oszip-bg-shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-page .header {
    padding: 22px 22px 14px 22px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    gap: 12px;
    align-items: center;
}

.login-page .logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--oszip-bg-accent), var(--oszip-bg-accent2));
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.18);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: white;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.login-page .title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.login-page .subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--oszip-bg-muted);
}

.login-page form {
    padding: 18px 22px 22px 22px;
}

.login-page .field {
    margin-top: 14px;
}

.login-page label {
    display: block;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
    font-weight: 600;
}

.login-page .input {
    width: 100%;
    appearance: none;
    border: 1px solid var(--oszip-bg-border);
    border-radius: 12px;
    padding: 12px 12px;
    font-size: 14px;
    outline: none;
    background: white;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

    .login-page .input:focus {
        border-color: rgba(220, 38, 38, 0.75);
        box-shadow: 0 0 0 6px var(--oszip-bg-ring);
    }

.login-page .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.login-page .btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--oszip-bg-accent), var(--oszip-bg-accent2));
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.2);
    transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

    .login-page .btn:hover {
        filter: brightness(1.03);
    }

    .login-page .btn:active {
        transform: translateY(1px);
    }

.login-page .error {
    margin: 12px 22px 0 22px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.07);
    color: var(--oszip-bg-danger);
    font-size: 13px;
}

.login-page .footer {
    padding: 14px 22px 18px 22px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    text-align: center;
}

.login-page .btn-row {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

    .login-page .btn-row .btn {
        flex: 1 1 0;
        min-width: 0;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        white-space: nowrap;
    }

.login-page .btn-half {
    width: auto !important;
    margin: 0 !important;
}

@media (max-width: 380px) {
    .login-page .header {
        padding: 18px;
    }

    .login-page form {
        padding: 16px 18px 18px 18px;
    }
}
