/* =========================================================
   LOGIN PAGE
   ========================================================= */

#main-login-div {
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(84, 168, 121, .08), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(40, 103, 68, .12), transparent 60%),
        var(--bg);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
}

#main-login-entry-div {
    width: min(100%, 480px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    position: relative;
}

#login-logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
}

#login-logo {
    width: 56px;
    height: 56px;
    border: 1px solid var(--green);
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

#login-theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font-size: 1.1rem;
    transition: border-color .2s, color .2s;
}
#login-theme-toggle:hover {
    border-color: var(--green);
    color: var(--green);
}

#main-login-entry-div > .eyebrow {
    margin-top: 12px;
    margin-bottom: 4px;
}

.main-heading {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    text-align: center;
    margin: 4px 0 6px;
    font-weight: 600;
}

.login-sub {
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
    margin-bottom: 24px;
}

#login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-field {
    display: grid;
    gap: 6px;
}
.login-field span {
    color: var(--ink);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.login-field input::placeholder {
    color: var(--muted);
    opacity: .8;
}
.login-field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(84, 168, 121, .18);
}

#confirm-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 50px;
    width: 100%;
    margin-top: 8px;
    padding: 12px 24px;
    border: 1px solid var(--green);
    border-radius: var(--radius);
    background: var(--green-btn);
    color: var(--colored);
    font-weight: 700;
    font-size: 1rem;
    transition: background .2s ease, transform .2s ease;
}
#confirm-login-button:hover {
    background: var(--green-btn-hover);
    transform: translateY(-2px);
}
#confirm-login-button:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

#login-error {
    color: var(--error);
    font-size: .85rem;
    min-height: 1.2rem;
    margin: 8px 0 0;
    text-align: center;
    overflow-wrap: anywhere;
}

/* small phones */
@media (max-width: 480px) {
    #main-login-div {
        padding: 16px;
        align-items: stretch;
    }
    #main-login-entry-div {
        padding: 24px 20px;
        border-radius: 20px;
    }
}
