/* =========================
   GLOBAL BACKGROUND
========================= */
body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    color: white;

    min-height: 100vh;

    background:
        radial-gradient(circle at 20% 30%, rgba(124,58,237,0.25), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6,182,212,0.25), transparent 40%),
        linear-gradient(135deg, #050816, #0b1220 60%, #020617);
}

/* =========================
   WRAPPER (CENTER FULL)
========================= */
.wrapper {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
    box-sizing: border-box;
}

/* =========================
   CARD (LOGIN BOX)
========================= */
.card {
    width: 100%;
    max-width: 420px;

    padding: 30px;

    border-radius: 20px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);

    box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

/* =========================
   TITLE
========================= */
h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* =========================
   FORM
========================= */
.form-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* =========================
   RGB BORDER WRAPPER
========================= */
.rgb-border {
    padding: 2px;
    border-radius: 14px;

    background: linear-gradient(
        90deg,
        #ff004c,
        #7c3aed,
        #00d4ff,
        #facc15,
        #ff004c
    );

    background-size: 300% 300%;
    animation: rgbBorder 5s linear infinite;
}

/* =========================
   INPUTS
========================= */
.rgb-border input {
    width: 100%;
    padding: 14px;

    border-radius: 12px;
    border: none;

    background: #0b1220;
    color: white;

    outline: none;
    box-sizing: border-box;
}

.rgb-border input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* =========================
   BUTTON
========================= */
button {
    width: 100%;
    padding: 14px;

    border-radius: 14px;
    border: none;

    font-weight: bold;
    cursor: pointer;

    color: white;

    background: linear-gradient(90deg, #7c3aed, #06b6d4, #f59e0b);
    background-size: 200% 200%;

    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
    background-position: right center;
}

/* =========================
   ERROR MESSAGE
========================= */
.bad {
    margin-top: 15px;
    text-align: center;
    color: #ef4444;
    font-weight: bold;
}

/* =========================
   BACK BUTTON
========================= */
.back-btn {
    margin-top: 10px;

    background: #111827;
}

.back-btn:hover {
    background: #1f2937;
}

/* =========================
   ANIMATION
========================= */
@keyframes rgbBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {

    .card {
        padding: 20px;
    }

    input {
        padding: 16px;
        font-size: 16px;
    }

    button {
        padding: 16px;
        font-size: 16px;
    }
}