﻿.twofactor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 24px;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.twofactor-modal-content {
    background: #0e1726;
    border: 1px solid #233044;
    color: #fff;
    padding: 24px;
    max-width: 440px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}
.twofactor-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    float: right;
    cursor: pointer;
}
.twofactor-qr {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}
.twofactor-qr img {
    border: 4px solid #233044;
    border-radius: 8px;
}
.twofactor-secret {
    background: #131f33;
    border: 1px dashed #2f425d;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    word-break: break-all;
}
#twofactor-code,
#twofactor-login-code,
#twofactor-pin-code,
#twofactor-password-code,
#twofactor-email-code {
    width: 100%;
    padding: 10px;
    margin: 8px 0 6px 0;
    border: 1px solid #233044;
    border-radius: 6px;
    background: #0c1523;
    color: #fff;
}
#twofactor-message,
#twofactor-login-message,
#twofactor-pin-message,
#twofactor-password-message,
#twofactor-email-message { min-height: 22px; margin-bottom: 8px; color:#fff; }
.messageSuccess { color: #fff; }
.messageError { color: #fff; }
.twofactor-enabled {
    position: relative;
    cursor: not-allowed;
    overflow: visible;
}
.twofactor-enabled::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #0e1726;
    color: #fff;
    padding: 8px 10px;
    border: 1px solid #233044;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100000;
}
.twofactor-enabled:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -10px);
}

/* Discord link badge */
.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #233044;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #fff;
    text-decoration: none;
    min-width: 180px;
}
.discord-link img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0e1726;
}
.discord-link .discord-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}


.discord-link .discord-avatar { width: 28px; height: 28px; border-radius: 50%; background: #0e1726; }



.discord-link .discord-icon { font-size: 20px; color: #fff; line-height: 1; }
.discord-link .discord-avatar { width: 28px; height: 28px; border-radius: 50%; background: #0e1726; }

.discord-linked {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(88,101,242,0.45), 0 0 18px rgba(88,101,242,0.35);
}
.discord-linked::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -60%;
    width: 60%;
    height: 160%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.6) 55%, transparent 100%);
    transform: skewX(-20deg);
    animation: discordShine 1s ease-in-out infinite;
}
@keyframes discordShine {
    0%   { transform: translateX(-120%) skewX(-20deg); }
    50%  { transform: translateX(180%) skewX(-20deg); }
    100% { transform: translateX(320%) skewX(-20deg); }
}
