/* ==========================================================================
   TELA DE LOGIN & REGISTRO (CONCEITO CYBER DRAGON)
   ========================================================================== */

/* Wrapper principal que divide a tela */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #0d0614;
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

/* Lado Esquerdo - Arte do Dragão (Substituindo o Planeta) */
.login-wrapper::before {
    content: "";
    flex: 1;
    background-image: linear-gradient(135deg, rgba(13, 6, 20, 0.4) 0%, rgba(26, 10, 44, 0.8) 100%), url('img/dragon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
    display: block;
    border-right: 1px solid rgba(168, 85, 247, 0.2);
}

/* Se preferir um texto flutuante do lado esquerdo como no modelo: */
.login-wrapper::after {
    position: absolute;
    bottom: 10%;
    left: 5%;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffffff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 400px;
    letter-spacing: 2px;
    z-index: 2;
}

/* Lado Direito - O Formulário (Card) */
.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 10% 3rem 10%;
    background-color: #0f0717;
    z-index: 5;
    position: relative;
}

/* Status e Info do Topo */
.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #a855f7;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 8px #a855f7;
}

/* Títulos */
.card-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title span {
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Formulário */
.login-form {
    width: 100%;
    max-width: 420px;
}

.field {
    margin-bottom: 1.5rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Wrappers e Inputs */
.input-wrap {
    position: relative;
    width: 100%;
}

.input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background-color: #1a0f2e;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: sans-serif; /* Melhor legibilidade para campos de texto ordinários */
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrap input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
    background-color: #22143d;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a855f7;
    display: flex;
    align-items: center;
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

/* Botão de Submit (Estilo Degradê da foto de Referência) */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #4c1d95 0%, #3b82f6 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Botão do Discord (Estilo complementar) */
.btn-discord {
    width: 100%;
    padding: 14px;
    background-color: #5865F2;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.btn-discord:hover {
    background-color: #4752c4;
}

/* Footer do Card (Links de alternância) */
.card-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.card-footer a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
}

.card-footer a:hover {
    text-decoration: underline;
}

/* Badges de segurança */
.security-badge {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #4b5563;
    letter-spacing: 1px;
}

.security-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Caixas de Mensagem Dinâmicas (JS) */
#login-msg, #register-msg {
    width: 100%;
    max-width: 420px;
    padding: 12px;
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    border-radius: 6px;
    color: #fca5a5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE FIRST / ADAPTAÇÃO PARA SMARTPHONES)
   ========================================================================== */

@media (max-width: 968px) {
    .login-wrapper {
        flex-direction: column;
    }

    /* Remove o pseudo-elemento lateral e o transforma no topo da tela */
    .login-wrapper::before {
        flex: none;
        height: 250px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
        background-size: contain;
        background-position: center center;
    }

    .login-wrapper::after {
        display: none; /* Remove o texto grande flutuante no mobile */
    }

    .card {
        padding: 2rem 1.5rem;
        align-items: center;
    }

    .login-form {
        max-width: 100%;
    }
}