* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #36c6d3 0%, #1d8b95 100%);
    padding: 1rem;
}

.corner-logo {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 150px;
    height: auto;
    opacity: 0.95;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.brand {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    display: block;
    margin: 0 auto 1rem;
    width: 156px;
    height: 24px;
    background-color: #1d8b95;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.brand p {
    color: #718096;
    font-size: 0.875rem;
}

.form-group { margin-bottom: 1.25rem; }

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

input[type="email"],
input[type="password"],
.password-field input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
    outline: none;
    border-color: #36c6d3;
    box-shadow: 0 0 0 3px rgba(54, 198, 211, 0.18);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.checkbox-row input { margin: 0; }

.checkbox-row label {
    margin: 0;
    font-weight: 400;
}

button {
    width: 100%;
    padding: 0.875rem;
    background: #36c6d3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.alert {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.footer {
    text-align: center;
    color: #a0aec0;
    font-size: 0.75rem;
    margin-top: 1.5rem;
}

/* ── Password toggle (show/hide) ─────────────────────────────
   The page's generic `button { width: 100%; padding: 0.875rem; background: #36c6d3 }`
   rule (above) styles the submit button — without explicit overrides here it would also
   stretch this small toggle. Important markers below pin the toggle to the input. */
.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 2.75rem !important;
    width: 100%;
}

.password-field .password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 0.5rem !important;
    transform: translateY(-50%);
    width: 2rem !important;
    height: 2rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 6px;
    color: #718096 !important;
    cursor: pointer;
    padding: 0 !important;
    box-shadow: none;
    font-size: 1rem;
}

.password-field .password-toggle:hover { color: #1a202c !important; background: rgba(0, 0, 0, 0.04) !important; }
.password-field .password-toggle:focus-visible { outline: 2px solid #36c6d3; outline-offset: 1px; }
.password-field .password-toggle i { font-size: 1rem; pointer-events: none; }

/* ── Toast notifications (same as admin layout) ───────────────────────────── */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.05rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #cbd5e0;
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.45;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.toast-show { opacity: 0.85; transform: translateX(0); }
.toast.toast-show:hover { opacity: 1; }
.toast.toast-leaving { opacity: 0; transform: translateX(20px); }
.toast-success { background: #38a169; border-left-color: #2f855a; color: #fff; }
.toast-success .toast-icon { color: #fff; }
.toast-success .toast-close { color: rgba(255, 255, 255, 0.85); }
.toast-success .toast-close:hover { color: #fff; background: rgba(255, 255, 255, 0.18); }
.toast-error { background: #e53e3e; border-left-color: #c53030; color: #fff; }
.toast-error .toast-icon { color: #fff; }
.toast-error .toast-close { color: rgba(255, 255, 255, 0.85); }
.toast-error .toast-close:hover { color: #fff; background: rgba(255, 255, 255, 0.18); }
.toast-icon { flex-shrink: 0; font-size: 1.2rem; line-height: 1; }
.toast-message { flex: 1; word-break: break-word; }
.toast-close {
    flex-shrink: 0;
    width: 1.75rem; height: 1.75rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 5px;
    color: #a0aec0; cursor: pointer; padding: 0; line-height: 1; font-size: 1rem;
}
.toast-close:hover { color: #1a202c; background: rgba(0, 0, 0, 0.04); }

@media (max-width: 640px) {
    .toast-container { top: 0.75rem; right: 0.75rem; left: 0.75rem; max-width: none; }
}
