/* ================================================================
   Yeap Two-Factor Auth — Login / Challenge Screen styles
   ================================================================ */

#ytfa-challenge-wrap {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.ytfa-logo {
    text-align: center;
    margin-bottom: 20px;
}
.ytfa-logo img {
    max-width: 160px;
    max-height: 60px;
    object-fit: contain;
}

.ytfa-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 6px;
}

.ytfa-subtitle {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin: 0 0 20px;
}

/* ---------------------------------------------------------------
   Notices
   --------------------------------------------------------------- */
.ytfa-notice {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.ytfa-notice--error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.ytfa-notice--success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.ytfa-notice--info    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ---------------------------------------------------------------
   Code input override — make it prominent
   --------------------------------------------------------------- */
#ytfa-challenge-wrap input.ytfa-code-input {
    width: 100%;
    font-size: 28px;
    letter-spacing: 10px;
    text-align: center;
    padding: 12px 10px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
#ytfa-challenge-wrap input.ytfa-code-input:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 4px rgba(26, 86, 219, .12);
    background: #fff;
    outline: none;
}
#ytfa-challenge-wrap input.ytfa-backup-input {
    font-size: 20px;
    letter-spacing: 4px;
}

/* ---------------------------------------------------------------
   Trust checkbox row
   --------------------------------------------------------------- */
.ytfa-trust-row {
    margin: 12px 0;
    font-size: 13px;
    color: #475569;
}
.ytfa-trust-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ---------------------------------------------------------------
   Submit button
   --------------------------------------------------------------- */
.ytfa-submit-row {
    margin: 16px 0 0;
}
.ytfa-submit-btn {
    width: 100%;
    padding: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    background: #1a56db !important;
    border-color: #1a56db !important;
    color: #fff !important;
}
.ytfa-submit-btn:hover {
    background: #1e40af !important;
    border-color: #1e40af !important;
}

/* ---------------------------------------------------------------
   Actions row (resend + backup link)
   --------------------------------------------------------------- */
.ytfa-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.ytfa-resend-btn {
    background: none;
    border: none;
    color: #1a56db;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
}
.ytfa-resend-btn:disabled {
    color: #94a3b8;
    text-decoration: none;
    cursor: default;
}
.ytfa-backup-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: underline;
}
.ytfa-backup-link:hover { color: #1a56db; }

/* ---------------------------------------------------------------
   Back link
   --------------------------------------------------------------- */
.ytfa-back-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}
.ytfa-back-link a { color: #64748b; }
.ytfa-back-link a:hover { color: #1a56db; }

/* ---------------------------------------------------------------
   Mobile
   --------------------------------------------------------------- */
@media (max-width: 480px) {
    .ytfa-actions { flex-direction: column; align-items: flex-start; }
}
