/* Fondo animado */
body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2a43, #0e4d92);
    display: flex;
    flex-direction: column;
}

.canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Topbar */
.topbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 0;
    font-size: 20px;
    text-align: center;
    letter-spacing: 1px;
}

/* Grid del login */
.auth-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Tarjetas */
.auth-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: transform .3s;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-card h2 {
    margin-bottom: 20px;
    font-weight: 300;
    text-align: center;
}

/* Inputs */
.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
}

.auth-card input:focus {
    outline: 2px solid #4dabff;
}

/* Botón */
.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: #1a82e2;
    color: #fff;
    cursor: pointer;
    transition: background .3s, transform .2s;
}

.btn:hover {
    background: #0f6ac4;
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 700px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }
}

/* CONTENEDOR CENTRAL */
.auth-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* TARJETA PRINCIPAL */
.auth-card-switch {
    width: 380px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.89);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    transition: transform .3s ease, opacity .3s ease;
}

#form-title {
    text-align: center;
    margin-bottom: 25px;
    color: #0a2a43;
    font-size: 26px;
    font-weight: 600;
}

/* FORMULARIOS */
.form {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease;
}

.form.active {
    display: block;
    opacity: 1;
    transform: translateY(0px);
}

/* Inputs más elegantes */
.form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
}

.form input:focus {
    border-color: #0f6ac4;
    outline: none;
}

/* Botón */
.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #0f6ac4;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s, transform .2s;
}

.btn:hover {
    background: #0a56a2;
    transform: translateY(-2px);
}

/* TEXTO DE CAMBIO */
.switch-text {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    color: #333;
}

.switch-link {
    color: #0f6ac4;
    font-weight: bold;
    cursor: pointer;
}

.switch-link:hover {
    text-decoration: underline;
}