/* ===============================
   🎮 AUTH LOGIN - LEAGUE EZPORTS
   CSS limpio y optimizado
   =============================== */

/* ===== Hero Section ===== */
.auth-hero {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* ===== Container Principal ===== */
.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    width: 100%;
    max-width: 1100px;
    align-items: center;
}

/* ===== Card del Formulario ===== */
.auth-card {
    background: var(--panel);
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile: sin bordes ni sombras */
@media (max-width: 768px) {
    .auth-card {
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    
    .auth-card:hover {
        box-shadow: none;
    }
}

.auth-card-title {
    text-align: center;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 clamp(1.2rem, 2.5vw, 1.8rem) 0;
    line-height: 1.2;
}

/* ===== Formulario ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* ===== Form Group ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.2;
}

/* ===== Inputs ===== */
.form-input {
    width: 100%;
    background: var(--panel-2);
    border: 1px solid var(--borders);
    border-radius: 6px;
    padding: clamp(0.7rem, 1.5vw, 0.9rem) clamp(0.8rem, 2vw, 1.2rem);
    color: var(--txt);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
    transform: translateY(-1px);
}

.form-input:hover:not(:focus) {
    border-color: var(--muted);
}

.form-input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

/* ===== Password Control ===== */
.form-control-has-action {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control-has-action .form-input {
    padding-right: clamp(2.5rem, 5vw, 3.5rem);
}

#toggle-password {
    position: absolute;
    right: clamp(0.6rem, 1.5vw, 1rem);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

#toggle-password:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

/* ===== Fila de Opciones ===== */
.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 1.5vw, 0.8rem);
    margin-top: 0.25rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.form-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
    width: clamp(14px, 2vw, 16px);
    height: clamp(14px, 2vw, 16px);
}

/* ===== Links ===== */
.form-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.form-link:hover {
    opacity: 0.8;
}

/* ===== Estado del Formulario ===== */
.form-status {
    min-height: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d4f;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
    padding: clamp(0.5rem, 1vw, 0.75rem);
    border-radius: 6px;
    background: rgba(255, 77, 79, 0.1);
    border: 1px solid rgba(255, 77, 79, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-status:not(:empty) {
    opacity: 1;
}

/* ===== Botón Submit ===== */
.form-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: clamp(0.5rem, 1vw, 0.8rem);
}

.btn-login {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(2.5rem, 5vw, 4.5rem);
    border-radius: 0 clamp(8px, 1.5vw, 12px);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.35);
}

.btn-login:focus {
    outline: 3px solid rgba(var(--accent-rgb), 0.5);
    outline-offset: 2px;
}

/* ===== Footer del Formulario ===== */
.form-footer {
    text-align: center;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    margin-top: clamp(0.5rem, 1vw, 0.8rem);
}

.form-text {
    margin: 0;
    line-height: 1.5;
}