@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Manrope', sans-serif;
    background: #050505;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f7f7f7;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 10%, rgba(45, 212, 191, 0.18), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(96, 165, 250, 0.18), transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(251, 191, 36, 0.14), transparent 35%),
        linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.92));
    pointer-events: none;
}

.login-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.08), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(96, 165, 250, 0.08), transparent 45%),
        #0a0a0a;
    z-index: 0;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 72px;
}

.login-card {
    width: min(560px, 92vw);
    background: linear-gradient(160deg, rgba(45, 212, 191, 0.08), rgba(96, 165, 250, 0.05) 45%, rgba(15, 15, 15, 0.0) 70%), #0d0d0d;
    border-radius: 28px;
    padding: 84px 56px 76px;
    min-height: 640px;
    border: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: 0 30px 70px rgba(0,0,0,0.65), 0 0 40px rgba(45, 212, 191, 0.12);
}

.login-logo {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(45, 212, 191, 0.2), rgba(96, 165, 250, 0.15));
    border-radius: 22px;
    margin: 0 auto 34px;
}

.login-logo img {
    width: 36px;
    height: 36px;
    filter: none;
}

h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 36px;
    letter-spacing: -0.3px;
    text-align: center;
}

.form-group {
    margin-bottom: 26px;
}

label {
    display: block;
    color: #cfcfcf;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #6f6f6f;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 14px;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 16px 30px rgba(255, 255, 255, 0.18);
    margin-top: 6px;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.25);
}

.center-link {
    display: block;
    margin: 18px 0 10px;
    text-align: center;
}

.reset-link {
    color: #9bdbe0;
    font-size: 13px;
    text-decoration: underline;
}

.reset-link:hover {
    color: #fff;
}

.setup-link {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: #a4c7ff;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 26px;
}

.footer {
    margin-top: 16px;
    text-align: center;
    display: flex;
    gap: 28px;
    justify-content: center;
}

.footer a {
    color: #a7a7a7;
    text-decoration: none;
    font-size: 13px;
}

.footer a:hover {
    color: #fff;
}

.cursor-hover,
.mfa-modal {
    display: none;
}

.mfa-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(6px);
}

.mfa-modal.active {
    display: flex;
}

.mfa-card {
    width: min(520px, 92vw);
    max-height: 90vh;
    background: linear-gradient(160deg, rgba(45, 212, 191, 0.08), rgba(96, 165, 250, 0.05) 45%, rgba(15, 15, 15, 0.0) 70%), #0b0b0b;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(96, 165, 250, 0.12);
    overflow: auto;
}

.mfa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mfa-eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7d7d7d;
    margin-bottom: 8px;
}

.mfa-card h2 {
    font-size: 22px;
    color: #fff;
    margin: 0;
}

.mfa-close {
    background: transparent;
    border: none;
    color: #bdbdbd;
    font-size: 26px;
    cursor: pointer;
}

.mfa-sub {
    margin: 14px 0 20px;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

.mfa-qr {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.mfa-qr img {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    display: block;
}

.mfa-secret {
    font-size: 12px;
    color: #9e9e9e;
    word-break: break-all;
    text-align: center;
}

.mfa-input label {
    display: block;
    color: #cfcfcf;
    font-size: 13px;
    margin-bottom: 8px;
}

.mfa-input input {
    width: 100%;
    padding: 14px 16px;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.mfa-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.mfa-btn {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
}

.mfa-btn.ghost {
    background: transparent;
    color: #cfcfcf;
    border-color: rgba(255, 255, 255, 0.15);
}

.mfa-btn.primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

@media (max-width: 640px) {
    .login-card {
        padding: 44px 28px 36px;
    }
}
