/* ========================================= */
/* 0. GLOBAL VARIABLES & RESET               */
/* ========================================= */
:root {
    --bg-site: #0B0C10; 
    --bg-card: #1e1e1e;
    --accent: #7300ff;
    --text-main: #ffffff;
    --text-muted: #e0e0e0;
}

*, ::after, ::before {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-site);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Neue Machina', sans-serif;
    padding-top: 80px; 
}

/* ========================================= */
/* 1. TYPOGRAPHY                             */
/* ========================================= */
h1, h2 {
    font-family: 'Neue Machina', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-top: 0;
}

a, p {
    font-family: 'Neue Machina', sans-serif;
    font-size: 1.2em;
    color: var(--text-muted);
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover, p:hover, h1:hover, h2:hover {
    color: var(--accent);
}

/* ========================================= */
/* 2. LAYOUT CONTAINERS                      */
/* ========================================= */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1; 
    width: 100%;
    padding: 20px 20px 40px 20px;
    background: transparent; 
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px; 
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(115, 0, 255, 0.15);
}

.content h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

/* ========================================= */
/* 3. FORMS                                  */
/* ========================================= */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px; 
    gap: 20px;
}

label {
    display: block;
    text-align: left;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    color: white;
    font-size: 16px;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(115, 0, 255, 0.2);
}

/* Password Toggle */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 45px;
}

.btn-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    transition: color 0.3s ease;
    padding: 0;
}

.btn-toggle:hover {
    color: var(--accent);
}

/* Submit Button */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background: #5e00d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(115, 0, 255, 0.4);
}

/* ========================================= */
/* 4. SECURITY & MODALS (2FA)                */
/* ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.review-box {
    background: #181a1d; 
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(115, 0, 255, 0.3);
    box-shadow: 0 0 30px rgba(115, 0, 255, 0.2);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#tfaInput {
    width: 100%;
    background: #0b0c10;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    font-family: 'Neue Machina', sans-serif;
    outline: none;
    margin-bottom: 20px;
}

#tfaInput:focus {
    border-color: var(--accent);
}

.btn-cancel-review {
    background: transparent;
    color: #888;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    font-family: 'Neue Machina', sans-serif;
    text-transform: uppercase;
}

/* ========================================= */
/* 5. TOAST NOTIFICATIONS                    */
/* ========================================= */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 280px;
    padding: 15px 20px;
    border-radius: 10px;
    background: #1e1e1e;
    color: white;
    font-family: 'Neue Machina', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--accent);
    transform: translateX(120%);
    animation: slideIn 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success { border-left-color: #00ff88; }
.toast.error { border-left-color: #ff4444; }

.toast i { font-size: 1.2em; }
.toast.success i { color: #00ff88; }
.toast.error i { color: #ff4444; }

@keyframes slideIn {
    to { transform: translateX(0); }
}

/* ========================================= */
/* 6. FOOTER                                 */
/* ========================================= */
footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    padding: 30px;
    text-align: center;
    font-size: 0.9em;
    background: var(--bg-site);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ========================================= */
/* 7. RESPONSIVE                             */
/* ========================================= */
@media (max-width: 480px) {
    .content {
        padding: 20px;
        width: 100%;
        box-shadow: none; 
        background: transparent; 
        border: none;
    }
}