/* =====================================================
   NindoTV Client Panel – AUTH PAGES
   Style: Dark + Orange (AI / SaaS)
   File: auth.css
===================================================== */

/* ===== PAGE BACKGROUND ===== */
.auth-bg {
    margin: 0;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-family: "Inter", sans-serif;
}

/* Canvas background */
#tech-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* Dark glow overlay */
.auth-bg::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(255,165,0,0.10),
        transparent 60%
    );
    z-index: 1;
}

/* ===== CONTAINER ===== */
.auth-container {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 2;
}

/* ===== LOGO ===== */
.auth-logo {
    text-align: center;
    margin-bottom: 15px;
}
.auth-logo img {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(255,165,0,0.4));
}

/* ===== TITLE ===== */
.auth-title {
    text-align: center;
    margin-bottom: 18px;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff; /* أبيض */
}

/* ===== CARD ===== */
.auth-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* ===== INPUTS ===== */
.input-box {
    position: relative;
    margin-bottom: 18px;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    padding-right: 45px;
    background: #fff;
    border: 1px solid #d3d6df;
    border-radius: 8px;
    font-size: 15px;
    color: #111;
    transition: 0.25s;
    box-sizing: border-box;
}

.auth-card input:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255,122,0,0.25);
    outline: none;
}

/* Toggle password */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #888;
    transition: .2s;
}
.toggle-password:hover {
    color: #ff7a00;
}

/* ===== BUTTON ===== */
.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff7a00, #ff5e00);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}
.auth-btn:hover {
    opacity: 0.92;
}

/* Loader */
.auth-btn.loading {
    color: transparent !important;
    pointer-events: none;
}
.auth-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* ===== ALERT ===== */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 15px;
}
.alert-error {
    background: #ffe5e5;
    color: #b40000;
}

/* ===== LINKS ===== */
.auth-links {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #ffffff; /* أبيض */
}
.auth-links a {
    color: #ff9f1c;
    text-decoration: none;
    font-weight: bold;
}
.auth-links a:hover {
    text-decoration: underline;
}

/* ===== BACK BUTTON ===== */
.auth-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
    border: 1px solid #ff9f1c;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}
.auth-back:hover {
    background: #ff7a00;
    color: #fff;
}

/* ===== MOBILE ===== */
@media (max-width: 420px) {
    .auth-card {
        padding: 24px 18px;
    }
}




/* ==============================
   AUTH / TRIAL PAGE – PREMIUM UI
============================== */

* {
    box-sizing: border-box;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.auth-bg {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1a1205 0%, #000 60%);
    color: #fff;
    overflow-x: hidden;
}

/* ===== TECH BACKGROUND CANVAS ===== */
#tech-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* ===== CONTAINER ===== */
.auth-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

/* ===== LOGO ===== */
.auth-logo {
    margin-bottom: 18px;
}

.auth-logo img {
    max-width: 150px;
    height: auto;
}

/* ===== TRIAL CARD ===== */
.trial-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    background: rgba(15, 15, 15, 0.78);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    border: 1px solid rgba(255,165,0,0.28);
    box-shadow: 0 25px 90px rgba(0,0,0,0.75);
    text-align: center;
    animation: fadeUp 0.7s ease forwards;
}

/* ===== TITLE ===== */
.trial-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

/* ===== DESCRIPTION ===== */
.trial-desc {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 26px;
    line-height: 1.6;
}

.trial-desc strong {
    color: #ffa500;
}

/* ===== FORM ===== */
.trial-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.trial-form input::placeholder {
    color: #aaa;
}

.trial-form input:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 0 2px rgba(255,165,0,0.35);
}

/* ===== PHONE ROW ===== */
.phone-row {
    display: flex;
    gap: 10px;
}

.phone-row input:first-child {
    max-width: 90px;
    text-align: center;
}

/* ===== BUTTON ===== */
.trial-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #ffa500, #ffcc70);
    color: #000;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trial-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 45px rgba(255,165,0,0.6);
}

/* ===== FOOTER NOTE ===== */
.trial-footer {
    margin-top: 16px;
    font-size: 12px;
    color: #bbb;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .trial-card {
        padding: 32px 22px;
        border-radius: 18px;
    }

    .trial-title {
        font-size: 24px;
    }
}
