/* 2FA Login Page Styles */

/* Container for 2FA login section */
.two-factor-login {
    padding: 20px 10px;
}

/* 6-digit code input boxes for login page */
.code-input-group-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
}

.code-digit-login {
    width: 42px;
    height: 52px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.code-digit-login:focus {
    border-color: #5d9cec;
    box-shadow: 0 0 0 3px rgba(93, 156, 236, 0.2);
    outline: none;
}

.code-separator-login {
    font-size: 20px;
    color: #999;
    margin: 0 2px;
}

/* Backup code input field */
.backup-code-input {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}

/* Lockout display section */
.lockout-display {
    padding: 30px 20px;
    text-align: center;
}

.lockout-timer {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    max-width: 300px;
}

.lockout-time {
    font-size: 48px;
    font-weight: 700;
    color: #d9534f;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 4px;
}

/* Spacing utilities for login page */
.mt0 { margin-top: 0; }
.mt { margin-top: 15px; }
.mb { margin-bottom: 15px; }
.mt-lg { margin-top: 25px; }
.mb-lg { margin-bottom: 25px; }

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .code-digit-login {
        width: 36px;
        height: 46px;
        font-size: 20px;
    }

    .code-input-group-login {
        gap: 4px;
    }

    .lockout-time {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .backup-code-input {
        font-size: 16px;
        letter-spacing: 1px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .code-digit-login {
        width: 32px;
        height: 42px;
        font-size: 18px;
    }

    .code-input-group-login {
        gap: 3px;
    }

    .code-separator-login {
        font-size: 16px;
        margin: 0 1px;
    }
}

/* Trust device checkbox */
.twofa-trust-checkbox {
    margin-top: 16px;
    margin-bottom: 16px;
}

.twofa-trust-checkbox .c-checkbox {
    font-weight: normal;
}

.twofa-trust-checkbox .text-muted {
    font-size: 12px;
    margin-top: 4px;
}

/* Trusted Devices Cards */
.device-card {
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.device-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Current device styling */
.device-card-current {
    border-color: #27c24c;
    border-width: 2px;
}

.device-card-current .device-card-header {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
}

/* Expiring device styling */
.device-card-expiring {
    border-color: #f0ad4e;
    border-width: 2px;
}

.device-card-expiring .device-card-header {
    background: linear-gradient(135deg, #fffbf0 0%, #fff3e0 100%);
}

/* Device card header */
.device-card-header {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e4e4e4;
    gap: 12px;
}

.device-card-header .device-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5d9cec;
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
}

.device-card-current .device-icon {
    background: #27c24c;
}

.device-card-expiring .device-icon {
    background: #f0ad4e;
}

.device-card-header .device-title {
    flex: 1;
    min-width: 0;
}

.device-card-header .device-title h4 {
    font-size: 15px;
    font-weight: 600;
    color: #3a3f51;
    margin: 0 0 4px 0;
    word-break: break-word;
}

.device-card-header .device-title .label {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 6px;
}

/* Device card body */
.device-card .panel-body {
    padding: 15px;
}

.device-card .text-monospace {
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Device card footer */
.device-card-footer {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    background: #fafafa;
    border-top: 1px solid #e4e4e4;
}

.device-card-footer .btn {
    flex: 1;
}

/* Inline edit styling */
.device-card-header .input-group {
    margin-bottom: 4px;
}

.device-card-header .input-group .form-control {
    height: 32px;
    font-size: 14px;
}

.device-card-header .input-group .btn {
    padding: 4px 10px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .device-card-header .device-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .device-card-header .device-title h4 {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .device-card-footer {
        flex-direction: column;
    }
}
