body {
    font-family: system-ui, sans-serif;
    background: #f7f7f2;
    margin: 0;
    padding: 0;
}

.auth-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.auth-logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 160px;
}

.auth-title {
    text-align: center;
    margin-bottom: 25px;
    color: #2f4f2f;
    font-size: 1.6rem;
    font-weight: 600;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"],
.auth-container input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.auth-container input:focus {
    border-color: #2f4f2f;
    outline: none;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background: #2f4f2f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-container button:hover {
    background: #3d5f3d;
}

.auth-container a {
    color: #2f4f2f;
    text-decoration: none;
    font-size: 0.95rem;
}

.auth-container a:hover {
    text-decoration: underline;
}

/* Centered content block */
.thanks-center {
    padding: 40px 20px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.thanks-image {
    display: block;
    margin: 20px auto;
    width: 180px;
    max-width: 50%;
}

.pw-strength-bar {
    height: 6px;
    background: #ccc;
    margin-top: 4px;
    border-radius: 3px;
    transition: background 0.3s;
}

.pw-strength-bar.weak {
    background: #d9534f;
}

.pw-strength-bar.medium {
    background: #f0ad4e;
}

.pw-strength-bar.strong {
    background: #5cb85c;
}

.pw-rules {
    font-size: 0.85em;
    margin-top: 6px;
    color: #666;
}

.pending-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: sans-serif;
    font-size: 14px;
}

.pending-table th,
.pending-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.pending-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.pending-table tr:nth-child(even) {
    background-color: #fafafa;
}

.approve-btn {
    background-color: #2e7d32;
    /* deep green */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    margin-right: 8px;
}

.deny-btn {
    background-color: #c62828;
    /* deep red */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
}

.pending-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ------------------------------------------------------ */
/* Passkey Info Modal (Login Page)                        */
/* ------------------------------------------------------ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 480px;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
    animation: slideUp 0.25s ease-out;
    color: #2f4f2f;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    /* <-- REQUIRED */
    align-items: center;
    /* <-- REQUIRED */
    justify-content: center;
    /* <-- REQUIRED */
    z-index: 9999;
    animation: fadeIn 0.25s ease-out;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #2f4f2f;
    text-align: center;
}

.modal-content h3 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 1.05rem;
    color: #2f4f2f;
}

.modal-content p {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #444;
    margin-bottom: 10px;
}

.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 12px;
}

.button-row .btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.button-row .btn.primary {
    background: #2f4f2f;
    color: white;
}

.button-row .btn.primary:hover {
    background: #3d5f3d;
}

.button-row .btn {
    background: #e6e6e6;
    color: #333;
}

.button-row .btn:hover {
    background: #dcdcdc;
}

.hidden {
    display: none !important;
}

/* ------------------------------------------------------------------ */
/* Password-Warning Modal (60-second read lock)                        */
/* ------------------------------------------------------------------ */

.pwm-box {
    max-width: 540px;
    width: 94%;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 12px;
}

.pwm-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.pwm-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
    margin-bottom: 5px;
}

.pwm-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2f4f2f;
    line-height: 1.3;
    text-align: left;
}

.pwm-body {
    padding: 18px 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.93rem;
    line-height: 1.7;
    color: #444;
}

.pwm-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2f4f2f;
    margin: 1.1rem 0 0.35rem;
}

.pwm-body h3:first-child {
    margin-top: 0;
}

.pwm-body p {
    margin: 0 0 0.55rem;
}

.pwm-body ul {
    margin: 0.3rem 0 0.6rem;
    padding-left: 1.3rem;
}

.pwm-body li {
    margin-bottom: 0.3rem;
}

.pwm-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 0.75rem 0;
}

.pwm-compare th {
    text-align: left;
    font-weight: 700;
    color: #2f4f2f;
    padding: 7px 10px;
    border-bottom: 1px solid #d0d0d0;
}

.pwm-compare td {
    padding: 6px 10px;
    border-bottom: 1px solid #ebebeb;
    color: #555;
}

.pwm-compare td:first-child {
    color: #333;
    font-weight: 500;
}

.pwm-no {
    display: inline-block;
    background: #fde8e8;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
}

.pwm-yes {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
}

.pwm-footnote {
    font-size: 0.82rem;
    color: #999;
    margin-top: 1rem;
}

.pwm-footer {
    padding: 14px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.pwm-timer-block {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #777;
}

.pwm-ring-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.pwm-ring-wrap svg {
    transform: rotate(-90deg);
}

.pwm-ring-track {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 3;
}

.pwm-ring-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke: #b45309;
    transition: stroke-dashoffset 1s linear, stroke 0.4s;
}

.pwm-ring-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #333;
}

.pwm-btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #ccc;
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pwm-btn.pwm-btn-ready {
    background: #2f4f2f;
    color: #fff;
    border-color: #2f4f2f;
    cursor: pointer;
}

.pwm-btn.pwm-btn-ready:hover {
    background: #3d5f3d;
}