/* Security UI Additions & Helpers */

.caps-lock-warning {
    display: none;
    color: #ff944d;
    background-color: rgba(255, 148, 77, 0.1);
    border: 1px solid rgba(255, 148, 77, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

.strength-meter-container {
    margin-top: 8px;
    margin-bottom: 12px;
}

.strength-meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.strength-meter-bar {
    height: 6px;
    width: 100%;
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0%;
    background-color: #ff4d4d;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.spinner-loader {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-right: 6px;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.backup-codes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background-color: var(--card-bg-light, #f8f9fa);
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: bold;
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.15);
    margin: 15px 0;
}

[data-theme="dark"] .backup-codes-grid {
    background-color: rgba(255, 255, 255, 0.05);
}

.backup-code-item {
    padding: 6px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    padding: 4px;
    font-size: 1.1rem;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #fff;
}

.captcha-container-div {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.alert-error {
    background-color: rgba(255, 77, 77, 0.1) !important;
    border: 1px solid rgba(255, 77, 77, 0.3) !important;
    color: #ff6666 !important;
}

.alert-success {
    background-color: rgba(51, 204, 51, 0.1) !important;
    border: 1px solid rgba(51, 204, 51, 0.3) !important;
    color: #4dd24d !important;
}

.revoke-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.revoke-btn:hover {
    background-color: #bd2130;
}

.revoke-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}
