/* =============================== */
/* PROJETO EDEN - LOGIN */
/* =============================== */

:root {
    --eden-bg-dark: #020f0a;
    --eden-bg-card: rgba(5, 31, 20, 0.92);
    --eden-green: #1f6b41;
    --eden-green-dark: #0d3824;
    --eden-gold: #e5bd64;
    --eden-gold-light: #fff0a8;
    --eden-text: #f4ead0;
    --eden-muted: #cdbd91;
    --eden-danger: #ff9aaa;
    --eden-danger-bg: rgba(196, 95, 114, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--eden-text);
    background: var(--eden-bg-dark);
}

body {
    overflow-x: hidden;
}

/* =============================== */
/* BACKGROUND */
/* =============================== */

.login-background {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(
            180deg,
            rgba(2, 15, 10, 0.78) 0%,
            rgba(2, 15, 10, 0.88) 52%,
            rgba(1, 8, 5, 0.96) 100%
        ),
        radial-gradient(circle at 20% 18%, rgba(229, 189, 100, 0.16), transparent 18%),
        radial-gradient(circle at 80% 22%, rgba(31, 107, 65, 0.28), transparent 14%),
        url("../images/projetoeden/home/background-eden.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 78%);
    pointer-events: none;
}

.login-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.35) 72%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

/* Canvas de partículas */
#magic-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* =============================== */
/* WRAPPER */
/* =============================== */

.login-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100vh;
    padding: 70px 20px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================== */
/* CARD */
/* =============================== */

.login-card {
    position: relative;
    width: min(460px, 100%);
    padding: 38px 34px 32px;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 189, 100, 0.15), transparent 34%),
        linear-gradient(180deg, rgba(6, 35, 22, 0.96), rgba(2, 18, 12, 0.96));
    border: 1px solid rgba(229, 189, 100, 0.45);
    box-shadow:
        0 0 40px rgba(229, 189, 100, 0.16),
        0 32px 80px rgba(0, 0, 0, 0.62),
        inset 0 0 28px rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px);
    animation: edenLoginShow 0.45s ease;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 78%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 240, 168, 0.9),
        transparent
    );
    box-shadow: 0 0 18px rgba(229, 189, 100, 0.7);
}

.login-card::after {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(229, 189, 100, 0.14), transparent 68%);
    pointer-events: none;
}

@keyframes edenLoginShow {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============================== */
/* TÍTULO / LOGO */
/* =============================== */

.login-title {
    position: relative;
    z-index: 2;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--eden-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 16px rgba(229, 189, 100, 0.35);
}

.login-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 12px rgba(229, 189, 100, 0.45))
        drop-shadow(0 0 20px rgba(31, 107, 65, 0.28));
    animation: edenLogoFloat 3.6s ease-in-out infinite;
}

@keyframes edenLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* =============================== */
/* ERRO */
/* =============================== */

.login-error {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--eden-danger-bg);
    border: 1px solid rgba(255, 154, 170, 0.48);
    color: #ffd6dd;
    font-size: 14px;
    text-align: center;
    box-shadow: inset 0 0 18px rgba(255, 154, 170, 0.04);
}

.login-shake {
    animation: edenLoginShake 0.38s ease, edenLoginShow 0.45s ease;
}

@keyframes edenLoginShake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }
}

/* =============================== */
/* FORM */
/* =============================== */

.login-card form {
    position: relative;
    z-index: 2;
}

.login-group {
    margin-bottom: 18px;
}

.login-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--eden-gold-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    height: 56px;
    padding: 0 48px;
    border-radius: 16px;
    background: rgba(1, 12, 8, 0.72);
    border: 1px solid rgba(229, 189, 100, 0.28);
    color: var(--eden-text);
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
}

.input-wrapper input:focus {
    border-color: rgba(255, 240, 168, 0.78);
    box-shadow:
        0 0 0 3px rgba(229, 189, 100, 0.08),
        0 0 22px rgba(229, 189, 100, 0.14);
    background: rgba(1, 12, 8, 0.88);
}

.input-icon {
    position: absolute;
    left: 16px;
    z-index: 2;
    width: 20px;
    height: 20px;
    color: var(--eden-gold);
    pointer-events: none;
}

.input-icon svg,
.toggle-password svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.toggle-password {
    position: absolute;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: rgba(229, 189, 100, 0.78);
    cursor: pointer;
    transition: 0.25s ease;
}

.toggle-password:hover {
    color: var(--eden-gold-light);
    transform: scale(1.08);
}

/* =============================== */
/* BOTÃO */
/* =============================== */

.login-button {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 58px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: linear-gradient(135deg, #113f28, #16633c);
    border: 1px solid var(--eden-gold);
    color: var(--eden-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 0 18px rgba(229, 189, 100, 0.22),
        0 16px 34px rgba(0, 0, 0, 0.35);
    transition: 0.3s ease;
}

.login-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: skewX(-20deg);
    transition: 0.55s ease;
}

.login-button:hover::before {
    left: 130%;
}

.login-button:hover {
    transform: translateY(-4px);
    border-color: var(--eden-gold-light);
    box-shadow:
        0 0 26px rgba(229, 189, 100, 0.34),
        0 20px 40px rgba(0, 0, 0, 0.43);
}

.login-button:active {
    transform: translateY(-1px);
}

/* =============================== */
/* LINKS */
/* =============================== */

.text-center {
    position: relative;
    z-index: 2;
    margin-top: 4px;
    text-align: center;
}

.text-center p {
    margin: 8px 0;
    color: var(--eden-muted);
    font-size: 14px;
    line-height: 1.6;
}

.text-center a,
.text-decoration-none {
    color: var(--eden-gold-light);
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.text-center a:hover,
.text-decoration-none:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(229, 189, 100, 0.55);
}

/* =============================== */
/* PARTÍCULAS DECORATIVAS DO CARD */
/* =============================== */

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(229, 189, 100, 0.45);
    box-shadow:
        42px 88px rgba(255, 240, 168, 0.28),
        180px 42px rgba(31, 107, 65, 0.45),
        300px 170px rgba(229, 189, 100, 0.22),
        120px 240px rgba(255, 240, 168, 0.2);
    animation: edenCardSparkle 5s ease-in-out infinite;
}

.particles::before {
    width: 4px;
    height: 4px;
    top: 40px;
    left: 40px;
}

.particles::after {
    width: 3px;
    height: 3px;
    right: 70px;
    bottom: 70px;
    animation-delay: 1.4s;
}

@keyframes edenCardSparkle {
    0%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    50% {
        opacity: 0.75;
        transform: translateY(-12px);
    }
}

/* =============================== */
/* RESPONSIVO */
/* =============================== */

@media (max-width: 620px) {
    .login-wrapper {
        padding: 44px 14px 34px;
    }

    .login-card {
        padding: 30px 20px 26px;
        border-radius: 24px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-logo {
        width: 48px;
        height: 48px;
    }

    .input-wrapper input {
        height: 52px;
        font-size: 14px;
    }

    .login-button {
        height: 54px;
    }
}

/* =============================== */
/* LOGIN / CADASTRO COM DISCORD */
/* =============================== */

.login-divider {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 14px;
    color: var(--eden-muted);
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 189, 100, 0.35), transparent);
}

.login-divider span {
    position: relative;
    z-index: 1;
    padding: 0 4px;
    background: rgba(2, 15, 10, 0.55);
}

.discord-btn {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 17px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    box-shadow:
        0 0 20px rgba(88, 101, 242, 0.35),
        0 14px 30px rgba(0, 0, 0, 0.32);
    transition: 0.28s ease;
}

.discord-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    box-shadow:
        0 0 30px rgba(88, 101, 242, 0.55),
        0 18px 36px rgba(0, 0, 0, 0.4);
}

.discord-btn:active {
    transform: translateY(-1px);
}

.discord-btn-ico {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.discord-hint {
    position: relative;
    z-index: 2;
    margin: 12px 0 0;
    text-align: center;
    color: var(--eden-muted);
    font-size: 12.5px;
    line-height: 1.6;
}