/* ============================================================
   login.css — login page specific styles
   ============================================================ */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 400px;
    width: 100%;
}

h1 {
    margin-bottom: 10px;
}

.subtitle {
    color: var(--green-muted);
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: var(--green-muted);
    font-size: 14px;
}

.footer a {
    color: var(--green-mid);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* The wrapper is exactly the input's height — no margin on the input, no
   stray line box — so top:50% on the eye is the middle of the FIELD. It sat
   low because the wrapper was taller than the input it wraps. */
.password-wrapper {
    position: relative;
    display: block;
    line-height: 0;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding-right: 44px;
    line-height: normal;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--green-muted);
    padding: 4px;
    margin: 0;
    width: auto;
    height: auto;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hidden = the eye STRUCK THROUGH and greyed; revealed = the eye open. The
   landing page's forms use the same pair (.pwd-eye in index.html). The white
   underlay line cuts a gap where the strike crosses the outline. */
.toggle-password .eye-closed { color: #858C88; }
.toggle-password .eye-strike-gap { stroke: #fff; stroke-width: 5; }
.toggle-password[aria-pressed="true"] .eye-closed,
.toggle-password:not([aria-pressed="true"]) .eye-open { display: none; }

.toggle-password:hover {
    color: var(--green-mid);
}
