﻿:root {
    --bg: #0b1020;
    --card: #141a2a;
    --card-alt: #1e2540;
    --text: #e9eaf7;
    --muted: #aab4d4;
    --accent: #4cc9f0;
    --card-radius: 14px;
    --shadow: 0 6px 18px rgba(0, 0, 0, .25);
    --gap: 20px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* ensure full height reference */
    /*overflow: hidden;*/ /* prevent any scrolling */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial;
    color: var(--text);
    background: linear-gradient(135deg, #0a0f1e 0%, #0b1020 60%, #0b1020 100%);
}

/* Reuse header style from the monitoring page for brand consistency */
.site-header {
    text-align: center;
    padding: 28px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(11,16,32, .88);
}

    .site-header h1 {
        margin: 0;
        font-size: 1.8rem;
    }

    .site-header .subtitle {
        color: var(--muted);
        margin-top: 6px;
        font-size: 0.95rem;
    }

/* Login container centered on the page, below the fixed header */
.login-wrap {
    min-height: calc(100vh - 70px); /* account for header height */
    display: grid;
    place-items: center;
    padding: 40px 16px;
    padding-top: 110px; /* offset for fixed header visual space */
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-card {
    width: min(420px, 92vw);
    background: linear-gradient(180deg, rgba(20,26,42,.97), rgba(20,26,42,.90));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--card-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
    color: var(--text);
}

.login-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 6px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: radial-gradient(circle at 30% 30%, #4cc9f0 0 40%, #1e2a5a 40% 100%);
    box-shadow: 0 2px 6px rgba(76,201,240,.5);
}

.brand-name {
    font-weight: 700;
    letter-spacing: .3px;
    font-size: 1.05rem;
}

.login-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
}

form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

label {
    font-size: 0.88rem;
    color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(10, 14, 28, 0.8);
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder {
    color: #7a87b3;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(76,201,240,.15);
}

.row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.button {
    appearance: none;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e2a5a, #0e1a3a);
    color: #eaf7ff;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .1s ease, background .2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

    .button:hover {
        background: linear-gradient(135deg, #243474, #1a2b68);
    }

    .button:active {
        transform: translateY(1px);
    }

.secondary {
    background: transparent;
    border: 1px solid rgba(76,201,240,.6);
    color: #e6f7ff;
}

.footer {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.login-wrap{
    background-image:url("/images/background1.jpg");
    background-repeat:no-repeat;
    background-size:cover;
}

@media (max-width: 520px) {
    .login-card {
        padding: 20px;
    }

    .brand-name {
        font-size: 1rem;
    }
}
