:root {
    /* Light mode defaults — overridden by Night.css */
    --clr-page-bg:    #E4E4E4;
    --clr-surface:    #FFFFFF;
    --clr-input-bg:   #FFFFFF;
    --clr-border:     rgba(0, 0, 0, 0.15);
    --clr-text:       #000000;
    --clr-text-muted: #636363;
    --radius-lg:      8px;
    --clr-toggle-active:   #f9ca33;
    --clr-toggle-inactive: #aaaaaa;
}

body {
    overflow-y: scroll;
    background-color: var(--clr-page-bg);
}

.logo-header {
    padding-bottom: 10px;
}

.logo-header svg {
    height: 55px;
    width: 198px;
}

.account-wall {
    width: 400px;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    background-color: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 25px 40px 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.text-center a {
    position: absolute;
    right: 13px;
    top: 12px;
    color: var(--clr-text-muted);
    font-size: 1.2em
}

.text-center a:hover {
    color: var(--clr-text);
}

.form-signin .alert {
    margin: 5px 0px;
}

.form-signin input {
    margin-top: 5px
}

.form-signin .btn {
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
}

.btn .glyphicon {
    margin-left: 3px;
    float: right;
    top: 1px;
    font-size: 1.2em;
}

/* Toggle switch — text on the left, switch on the right */
label {
    margin-top: 10px;
    color: var(--clr-text-muted);
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    top: 5px;
    left: 5px;
    width: 36px;
    height: 20px;
    background-color: var(--clr-toggle-inactive);
    background-image:
        radial-gradient(circle at 10px 10px, #ffffff 6.5px, rgba(255,255,255,0) 7px),
        radial-gradient(circle at 11px 11px, rgba(0,0,0,0.30) 6.5px, transparent 9.5px);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 0px center;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, background-position 0.15s;
}

input[type="checkbox"]:checked {
    background-color: var(--clr-toggle-active);
    background-position: 16px center;
    background-image:
        radial-gradient(circle at 10px 10px, #ffffff 6.5px, rgba(255,255,255,0) 7px),
        radial-gradient(circle at 10.5px 10.5px, rgba(0,0,0,0.30) 6.5px, transparent 9.5px);
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--clr-toggle-active);
    outline-offset: 2px;
    border-radius: 10px;
}
