* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #1a1d24;
    color: #e6e6e6;
}

/* LOGO */
.logo-global {
    position: fixed;
    top: 20px;
    left: 24px;
    font-size: 15px;
    font-weight: 600;

    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CENTER */
.page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    width: 300px;
}

/* CARD */
.card {
    background: #20242d;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #2b313d;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* INPUTS */
.input-group {
    margin-bottom: 10px;
}

input, textarea {
    width: 100%;
    padding: 9px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #2a2f3a;
    background: #0f1115;
    color: white;
}

/* BUTTON */
.login-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    color: white;
    cursor: pointer;
    background: linear-gradient(90deg, #3b82f6, #4f8df7);
}

/* ERROR */
.error-msg {
    margin-top: 10px;
    color: #ef4444;
    font-size: 12px;
}

/* HELP */
.footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.help-link {
    font-size: 12px;
    color: #6ea8ff;
    cursor: pointer;
}

/* LOADER */

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    background: rgba(10,12,16,0.85);
    display: none;
    align-items: center;
    justify-content: center;
}

.loader.active {
    display: flex;
}

/* фиксированный контейнер */
.loader-box {
    width: 220px;              /* 👈 фикс ширины */
    height: 120px;             /* 👈 фикс высоты */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

/* спиннер */
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #2a2f3a;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* текст */
.loader-text {
    margin-top: 12px;
    font-size: 12px;
    color: #9aa4b2;

    width: 100%;              /* 👈 фикс */
    min-height: 18px;         /* 👈 чтобы не прыгал по высоте */
}


@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* POPUP */
.contact-form {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.contact-form.active {
    display: flex;
}

.contact-box {
    background: #20242d;
    padding: 18px;
    border-radius: 12px;
    width: 300px;
}

.close-btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #2a2f3a;
    color: white;
    cursor: pointer;
}

/* STATUS */
.status-widget {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 150px;
    padding: 10px;
    font-size: 11px;
    background: #20242d;
    border-radius: 10px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ok {
    color: #22c55e;
    animation: pulse 2.5s infinite;
}

.warn {
    color: #facc15;
    animation: pulse 2s infinite;
}

.error {
    color: #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* MOBILE */
@media (max-width: 600px) {

    .content {
        width: 100%;
        padding: 0 16px;
    }

    .card {
        padding: 16px;
    }

    .logo-global {
        font-size: 14px;
        top: 14px;
        left: 16px;
    }

    .status-widget {
        width: 130px;
        font-size: 10px;
        bottom: 10px;
        right: 10px;
    }

    .contact-box {
        width: 90%;
    }
}


.success-box {
    text-align: center;
}

.success-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;

    border-radius: 50%;
    background: rgba(34,197,94,0.15);
    color: #22c55e;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 600;
}

.success-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.success-text {
    font-size: 12px;
    color: #9aa4b2;
    margin-bottom: 14px;
}

/* кнопка мягче */
.close-btn {
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    border: 1px solid #2a2f3a;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    background: #2a2f3a;
}
