/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE STYLES - GRIMOIRE ENTRANCE
   Additional styles for the login page (uses style.css as base)
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────── */
/* LOGIN REALM CONTAINER */
/* ─────────────────────────────────────────────────────────────── */
.login-realm {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1rem;
}

/* ─────────────────────────────────────────────────────────────── */
/* BACKGROUND SPELL CIRCLE */
/* ─────────────────────────────────────────────────────────────── */
.login-spell-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.15;
}

/* ─────────────────────────────────────────────────────────────── */
/* MAIN LOGIN CARD */
/* ─────────────────────────────────────────────────────────────── */
.grimoire-login {
    position: relative;
    z-index: 10;
    background: rgba(45, 27, 61, 0.85);
    backdrop-filter: blur(20px);
    border: 2px solid var(--ethereal-lavender);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow:
            0 20px 60px var(--shadow-deep),
            0 0 40px var(--glow-effect);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grimoire-login::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--spell-gold), var(--ethereal-lavender), var(--spell-gold));
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.grimoire-login:hover::before {
    opacity: 0.3;
}

/* ─────────────────────────────────────────────────────────────── */
/* LOGIN HEADER */
/* ─────────────────────────────────────────────────────────────── */
.login-header {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--frost-white);
    text-shadow: 0 0 20px var(--glow-effect);
}

.login-rune {
    color: var(--spell-gold);
    font-size: 1.2rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.login-subtitle {
    text-align: center;
    color: var(--ethereal-lavender);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ─────────────────────────────────────────────────────────────── */
/* FORM STYLES */
/* ─────────────────────────────────────────────────────────────── */
.spell-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--moonlight);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.label-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px var(--glow-effect));
}

.spell-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(61, 41, 82, 0.4);
    border: 2px solid var(--mystic-blue);
    border-radius: 8px;
    color: var(--frost-white);
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    outline: none;
}

.spell-input::placeholder {
    color: var(--magic-glow);
    opacity: 0.6;
}

.spell-input:focus {
    border-color: var(--spell-gold);
    background: rgba(61, 41, 82, 0.6);
    box-shadow: 0 0 20px rgba(232, 193, 112, 0.2);
}

.spell-input:focus + .input-underline {
    transform: scaleX(1);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--spell-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

/* ─────────────────────────────────────────────────────────────── */
/* FORM OPTIONS (Remember me & Forgot password) */
/* ─────────────────────────────────────────────────────────────── */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.remember-spell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--ethereal-lavender);
}

.remember-spell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--spell-gold);
}

.checkbox-label {
    user-select: none;
}

.forgot-link {
    color: var(--spell-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--spell-gold);
    transition: width 0.3s ease;
}

.forgot-link:hover::after {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────── */
/* SUBMIT BUTTON */
/* ─────────────────────────────────────────────────────────────── */
.cast-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--deep-violet), var(--mystic-blue));
    border: 2px solid var(--spell-gold);
    border-radius: 8px;
    color: var(--frost-white);
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(232, 193, 112, 0.6), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    border-radius: 50%;
}

.cast-button:hover {
    transform: translateY(-2px);
    box-shadow:
            0 8px 25px rgba(232, 193, 112, 0.4),
            0 0 30px var(--glow-effect);
}

.cast-button:hover .button-glow {
    width: 300px;
    height: 300px;
}

.cast-button:active {
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────── */
/* DIVIDER */
/* ─────────────────────────────────────────────────────────────── */
.spell-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ethereal-lavender), transparent);
}

.divider-text {
    color: var(--magic-glow);
    font-size: 0.9rem;
    font-style: italic;
}

/* ─────────────────────────────────────────────────────────────── */
/* REGISTER SECTION */
/* ─────────────────────────────────────────────────────────────── */
.register-section {
    text-align: center;
}

.register-text {
    color: var(--ethereal-lavender);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.register-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--spell-gold);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--spell-gold);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.link-arrow {
    transition: transform 0.3s ease;
}

.register-link:hover {
    background: rgba(232, 193, 112, 0.1);
    box-shadow: 0 0 15px rgba(232, 193, 112, 0.3);
}

.register-link:hover .link-arrow {
    transform: translateX(5px);
}

/* ─────────────────────────────────────────────────────────────── */
/* FLOATING DECORATIVE RUNES */
/* ─────────────────────────────────────────────────────────────── */
.floating-runes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.rune {
    position: absolute;
    color: var(--spell-gold);
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.rune-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.rune-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
}

.rune-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
}

.rune-4 {
    bottom: 30%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* ─────────────────────────────────────────────────────────────── */
/* LOGIN FOOTER */
/* ─────────────────────────────────────────────────────────────── */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    z-index: 100;
}

.login-footer .footer-text {
    color: var(--magic-glow);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.login-footer .footer-rune {
    color: var(--spell-gold);
    font-size: 0.8rem;
}

/* ─────────────────────────────────────────────────────────────── */
/* RESPONSIVE DESIGN */
/* ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .grimoire-login {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-spell-circle {
        width: 300px;
        height: 300px;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .floating-runes {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────── */
/* ERROR MESSAGE STYLES (for future use) */
/* ─────────────────────────────────────────────────────────────── */
.error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ffb3ba;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.success-message {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #b3ffba;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}