/* ================= pagina de registro ================= */

.auth {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: #f8f8f8;
}

.auth-container {
    max-width: 900px;
    width: 100%;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

/* Info */
.auth-info {
    background: #111;
    color: #fff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.auth-info p {
    font-size: 16px;
    line-height: 1.6;
}

/* Caja */
.auth-box {
    padding: 50px 40px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: #777;
}

.tab.active {
    color: #000;
    border-bottom: 2px solid #000;
}

/* Form */
.auth-form {
    display: none;
    animation: fade .4s ease;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    margin-bottom: 25px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.auth-form button {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.auth-form button:hover {
    background: #333;
}

.auth-extra {
    margin-top: 15px;
    font-size: 13px;
    color: #777;
    text-align: center;
    cursor: pointer;
}

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

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-info {
        display: none;
    }
}

.auth-error {
    color: #c62828;
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
}