/* GridLogic | Cockpit Integration 
    Aesthetic: Swiss-Modernist / Minimalist Technical
*/

:root {
    --brand-green: #05df72;
    --brand-green-hover: #04c966;
    --brand-green-active: #03b35b;
    --brand-white: #ffffff;
    --brand-dark: #000000;
    --brand-zinc: #18181b;
}

@keyframes flow {
    0% { background-position: 0px 0px, 0px 0px, 40% 40%; }
    50% { background-position: 0px 0px, 0px 0px, 60% 60%; }
    100% { background-position: 0px 0px, 0px 0px, 40% 40%; }
}

/* Background Logic */
body.login-pf {
    background-color: var(--brand-dark) !important;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background-image:
        linear-gradient(rgba(5, 223, 114, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 223, 114, 0.1) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(5, 223, 114, 0.4) 0%, rgba(5, 223, 114, 0.1) 40%, #000 90%) !important;
    background-size: 40px 40px, 40px 40px, 150% 150% !important;
    background-repeat: repeat, repeat, no-repeat !important;
    animation: flow 15s ease infinite;
}

/* Branding Logic */
#brand {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 28pt;
    font-weight: 900;
    text-transform: lowercase;
    letter-spacing: -0.05em;
    margin-bottom: 64px !important;
    display: flex;
    align-items: baseline;
}

#brand:before {
    content: "gridlogic";
    color: var(--brand-white);
}

#brand:after {
    content: "_"; /* Underscore style from the system */
    color: var(--brand-green);
    font-weight: 900;
}

/* Login Container */
.login-pf .container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0; /* Left aligned like the new welcome screen */
    width: 100%;
    max-width: 480px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    color: var(--brand-white);
    padding: 80px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
}

/* Input Fields */
.login-pf input[type="text"],
.login-pf input[type="password"] {
    height: 48px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-white);
    border: 0;
    border-bottom: solid 1px #222;
    background-color: #111;
    border-radius: 0;
    transition: all 0.3s ease;
}

.login-pf input[type="text"]:focus,
.login-pf input[type="password"]:focus {
    outline: none;
    border-bottom: 1px solid var(--brand-green);
    background-color: #1a1a1a;
}

.login-pf label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #666;
    margin-bottom: 8px;
}

/* Primary Button */
.login-button {
    border-radius: 0;
    height: 54px;
    background-color: var(--brand-white) !important;
    color: var(--brand-dark) !important;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 900;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    width: 100%;
    margin-top: 24px;
}

.login-button:hover {
    background-color: var(--brand-green) !important;
    box-shadow: 0 0 20px rgba(5, 223, 114, 0.3);
}

/* Detail Overrides */
.login-pf .details {
    display: none; /* Keep it clean */
}

#login-password-toggle {
    background-color: #111;
    color: #666;
    border: 0;
    border-bottom: solid 1px #222;
}

#error-group {
    background-color: #111;
    border: 1px solid #da1e28;
    border-radius: 0;
    color: #fff;
}

#login-error-message {
    color: #da1e28;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
}