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

body {
    margin: 0;
}
/* ======================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Vazirmatn:wght@400;700;900&display=swap');

:root {
    --fire-red: #cc2200;
    --lava-orange: #ff6600;
    --gold-glow: #e6b800;
    --bg-dark: #100505;
    --text-light: #f0e0d0;
    --border-color: rgba(255, 69, 0, 0.4);
}

.dragon-auth-body {
    color: var(--text-light);
    font-family: 'Vazirmatn', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: radial-gradient(ellipse at bottom, #5a1d0c 0%, #100505 60%);
}

/* --- Animation for floating embers --- */
@keyframes embers {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.embers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.ember {
    position: absolute;
    bottom: -10px;
    background-color: var(--lava-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--lava-orange), 0 0 20px var(--fire-red);
    animation: embers 10s linear infinite;
    opacity: 0;
}

/* --- Generating 20 ember particles with varied animations for a natural look --- */
.ember:nth-child(1) { width: 5px; height: 5px; left: 10%; animation-duration: 12s; animation-delay: 0s; }
.ember:nth-child(2) { width: 3px; height: 3px; left: 20%; animation-duration: 8s; animation-delay: 1s; }
.ember:nth-child(3) { width: 6px; height: 6px; left: 30%; animation-duration: 15s; animation-delay: 2s; }
.ember:nth-child(4) { width: 4px; height: 4px; left: 40%; animation-duration: 9s; animation-delay: 0.5s; }
.ember:nth-child(5) { width: 5px; height: 5px; left: 50%; animation-duration: 11s; animation-delay: 3s; }
.ember:nth-child(6) { width: 3px; height: 3px; left: 60%; animation-duration: 7s; animation-delay: 1.5s; }
.ember:nth-child(7) { width: 6px; height: 6px; left: 70%; animation-duration: 14s; animation-delay: 4s; }
.ember:nth-child(8) { width: 4px; height: 4px; left: 80%; animation-duration: 10s; animation-delay: 2.5s; }
.ember:nth-child(9) { width: 5px; height: 5px; left: 90%; animation-duration: 13s; animation-delay: 5s; }
.ember:nth-child(10) { width: 3px; height: 3px; left: 5%; animation-duration: 9s; animation-delay: 3.5s; }
.ember:nth-child(11) { width: 6px; height: 6px; left: 15%; animation-duration: 16s; animation-delay: 6s; }
.ember:nth-child(12) { width: 4px; height: 4px; left: 25%; animation-duration: 8s; animation-delay: 4.5s; }
.ember:nth-child(13) { width: 5px; height: 5px; left: 35%; animation-duration: 12s; animation-delay: 7s; }
.ember:nth-child(14) { width: 3px; height: 3px; left: 45%; animation-duration: 10s; animation-delay: 5.5s; }
.ember:nth-child(15) { width: 6px; height: 6px; left: 55%; animation-duration: 17s; animation-delay: 8s; }
.ember:nth-child(16) { width: 4px; height: 4px; left: 65%; animation-duration: 7s; animation-delay: 6.5s; }
.ember:nth-child(17) { width: 5px; height: 5px; left: 75%; animation-duration: 13s; animation-delay: 9s; }
.ember:nth-child(18) { width: 3px; height: 3px; left: 85%; animation-duration: 11s; animation-delay: 7.5s; }
.ember:nth-child(19) { width: 6px; height: 6px; left: 95%; animation-duration: 18s; animation-delay: 10s; }
.ember:nth-child(20) { width: 4px; height: 4px; left: 2%; animation-duration: 8s; animation-delay: 8.5s; }

/* --- Auth Card Styling --- */
.auth-card {
    background: rgba(16, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    z-index: 10;
    animation: card-glow 4s infinite alternate;
}

@keyframes card-glow {
    from { box-shadow: 0 0 25px rgba(255, 69, 0, 0.2); }
    to { box-shadow: 0 0 40px rgba(255, 102, 0, 0.5); }
}

.auth-title {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold-glow);
    text-shadow: 0 0 10px var(--lava-orange);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.input-field {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light) !important;
    transition: border-color 0.3s, box-shadow 0.3s;
    padding: 12px 15px !important;
    width: 100%;
    border-radius: 5px;
}

.input-field:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--gold-glow) !important;
    box-shadow: 0 0 10px var(--lava-orange) !important;
    outline: none;
}

.input-group {
    margin-bottom: 1rem;
}

.btn-submit {
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--fire-red), var(--lava-orange));
    color: var(--text-light);
    border: 2px solid var(--gold-glow);
    box-shadow: 0 0 15px var(--fire-red), inset 0 0 8px var(--lava-orange);
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

.btn-submit:hover {
    box-shadow: 0 0 30px var(--gold-glow), inset 0 0 15px var(--fire-red);
}

.auth-link {
    color: var(--lava-orange);
    transition: color 0.3s, text-shadow 0.3s;
    text-decoration: none;
    font-weight: 700; /* making link bold */
}

.auth-link:hover {
    color: var(--gold-glow);
    text-shadow: 0 0 5px var(--lava-orange);
}

.remember-me span {
    color: var(--text-light);
}

.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    color: var(--gold-glow);
    text-shadow: 0 0 10px var(--lava-orange);
}

.form-row, .register-link, .separator {
    text-align: center;
}

.separator {
    margin: 20px 0;
    border: none;
    border-top: 1px solid rgba(255, 69, 0, 0.2);
}

/* For better error message display */
.input-error-message {
    color: var(--lava-orange);
    font-size: 0.8rem;
    text-align: right;
    margin-top: 4px;
}
