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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

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

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

html body.bbcs-2fa {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(-45deg, #eab308, #22c55e, #06b6d4, #3b82f6, #94a3b8, #84cc16);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    margin: auto 0;
}

html body.bbcs-2fa::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.bbcs-2fa-container {
    max-width: 480px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    animation: slideIn 0.6s ease-out;
}

.bbcs-2fa-header {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    padding: 50px 30px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bbcs-2fa-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.bbcs-2fa-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.bbcs-2fa-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.bbcs-2fa-header h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.bbcs-2fa-header p {
    opacity: 0.95;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.bbcs-2fa-content {
    padding: 40px 30px;
}

.bbcs-2fa-info-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
    transition: transform 0.3s ease;
}

.bbcs-2fa-info-box:hover {
    transform: translateY(-2px);
}

.bbcs-2fa-info-box p {
    color: #14532d;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.bbcs-2fa-info-box .backup-info {
    color: #ca8a04;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bbcs-2fa-form-group {
    margin-bottom: 28px;
}

label.bbcs-2fa-label {
    display: block;
    margin-bottom: 12px;
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
}

input.bbcs-2fa-code {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 20px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    text-align: center;
    background: white;
}

input.bbcs-2fa-code:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

button.bbcs-2fa-btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #22c55e 0%, #06b6d4 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
}

button.bbcs-2fa-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

button.bbcs-2fa-btn-submit:hover:not(:disabled)::before {
    left: 100%;
}

button.bbcs-2fa-btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.5);
}

button.bbcs-2fa-btn-submit:active:not(:disabled) {
    transform: translateY(-1px);
}

button.bbcs-2fa-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.bbcs-2fa-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #c53030;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 5px solid #fc8181;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.1);
    animation: slideIn 0.3s ease-out;
}

.bbcs-2fa-rate-limit-warning {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    color: #854d0e;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 5px solid #eab308;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(133, 77, 14, 0.1);
    animation: slideIn 0.3s ease-out;
}

.bbcs-2fa-help-text {
    text-align: center;
    margin-top: 24px;
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
}

.bbcs-2fa-logout-link {
    text-align: center;
    margin-top: 24px;
}

.bbcs-2fa-logout-link a {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.bbcs-2fa-logout-link a:hover {
    color: #06b6d4;
    transform: translateX(-2px);
}
