/* ═══════════════════════════════════════════════
           GLOBAL STYLES & GLASSMORPHISM
        ══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(338deg, #000000 0%, #353612 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.privacy-link{
    font-weight: 400;
    padding-top: 15px;
    font-size: 14px;
    line-height: 179%;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-align: center;
    color: #cacaca;
}

/* Background animated blobs for the "Mega Cool" effect */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}

.blob.red {
    background: #ffb624;
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
}

.blob.blue {
    background: #4ea8ff;
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* ═══════════════════════════════════════════════
           AUTH CARD
        ══════════════════════════════════════════════════ */
.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    transform: scale(0.9);
    margin-top: -50px;
    max-width: 420px;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: #94a3b8;
    font-size: 14px;
}

/* Tabs */
.tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: #c8f135;
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 203, 70, 0.3);
}

/* Form Fields */
.input-group {
    margin-bottom: 16px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #c8f135;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.hidden {
    display: none !important;
}

/* Main Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #c8f135;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #c8f135b6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(221, 229, 70, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

/* Google Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #0f172a;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.google-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Messages */
#msg-box-2,
#msg-box {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: none;
}

#msg-box-2.show,
#msg-box.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

#msg-box-2.error,
#msg-box.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#msg-box-2.success,
#msg-box.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════
           RESET PASSWORD SYSTEM (PROFESSIONAL)
   ═══════════════════════════════════════════════ */

/* Сама модалка, що перекриває вміст картки */
#reset-modal-close{
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    line-height: 18px;
    display: block;
    background: none;
    border: navajowhite;
    color: #fff;
}
.reset-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9); /* Темний фон */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Стиль заголовків у кроках */
.reset-step h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Поля вводу всередині модалки */
.reset-step input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
    transition: 0.3s;
}

.reset-step input:focus {
    border-color: #c8f135;
    background: rgba(229, 70, 70, 0.05);
}

/* Сітка для 6-значного коду */
.code-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 10px 0 25px 0;
}

.code-inputs input {
    width: 100%;
    height: 54px;
    padding: 0;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 0; /* Прибираємо відступ для коду */
}

/* Кнопки у кроках (копіюють стиль основної submit-btn) */
.reset-step button {
    width: 100%;
    padding: 14px;
    background: #c8f135;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.reset-step button:hover {
    background: #c3b233;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 70, 70, 0.3);
}

/* Додатково: плавна поява при видаленні класу hidden */
.reset-modal:not(.hidden) {
    animation: modalFadeIn 0.3s ease-out;
}

.forgot-link{
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    padding-top: 10px;
    margin-bottom: 6px;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}