﻿:root {
    --purple-600: #8a3ffc;
    --purple-500: #a855f7;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f5f3ff;
    /* Imagen en raíz del sitio */
    --bg-url: url("../../img/basaltex-img.jpg");
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    /* quita esto cuando ya verifiques que carga */
    /* outline: 5px solid red; */
}

/* Layout general */
.auth {
    min-height: 100vh;
    display: flex;
    width: 100%;
}

.auth__left,
.auth__right {
    flex: 1 1 50%;
    min-height: 100vh;
}

/* Panel izquierdo */
.auth__left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    background: #f8f7ff;
}

.card {
    width: min(460px, 100%);
    padding: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.brand__logo {
    height: 66px; /* ajusta tamaño */
    width: auto;
    display: block;
    object-fit: contain;
}

.brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px rgba(138, 63, 252, .25);
    color: #fff;
    font-weight: 800;
    letter-spacing: .5px;
    user-select: none;
}

.brand__name {
    font-size: 34px;
    font-weight: 800;
    color: #a855f7;
    margin: 0;
    line-height: 1;
}

h2 {
    margin: 10px 0 6px;
    font-size: 22px;
    font-weight: 800;
}

.subtitle {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.field {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #374151;
}

/* Input con ícono */
.input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.input__icon {
    width: 44px;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--border);
    color: var(--purple-600);
    background: transparent;
}

.input input {
    width: 100%;
    border: 0;
    outline: none;
    padding: 12px 12px;
    font-size: 14px;
    background: transparent;
}

.input:focus-within {
    border-color: rgba(138, 63, 252, .6);
    box-shadow: 0 0 0 3px rgba(138, 63, 252, .12);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0 18px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    user-select: none;
}

    .check input {
        width: 16px;
        height: 16px;
    }

.link {
    color: var(--purple-600);
    font-size: 13px;
    text-decoration: underline;
}

.btn {
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 800;
    letter-spacing: .4px;
    cursor: pointer;
}

button.btn.btn--primary,
input.btn.btn--primary {
    color: #fff;
    /* ✅ más claro */
    background-color: #374151 !important;
    background-image: linear-gradient(90deg, #374151, #6b7280) !important;
    box-shadow: 0 10px 22px rgba(17,24,39,.18);
}

    button.btn.btn--primary:hover,
    input.btn.btn--primary:hover {
        /* ✅ hover un poco más claro */
        background-color: #4b5563 !important;
        background-image: linear-gradient(90deg, #4b5563, #9ca3af) !important;
    }

.social {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.btn--social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 800;
}

.btn--fb {
    background: #3b5998;
}

.btn--gg {
    background: #e74c3c;
}

.footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

    .footer a {
        color: var(--purple-600);
        font-weight: 800;
        text-decoration: underline;
    }

/* Panel derecho con imagen + overlay */
.auth__right {
    position: relative;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    /* “blindaje” por si otros estilos pisan cosas */
    display: block;
}


.copyright {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    padding: 0 18px;
}

/* Responsive */
@media (max-width: 900px) {
    .auth {
        flex-direction: column;
        min-height: 100vh;
    }

    .auth__left,
    .auth__right {
        min-height: auto;
    }

    .auth__left {
        flex: 0 0 64vh;
        height: 64vh;
    }

    .auth__right {
        flex: 0 0 36vh;
        height: 36vh;
        display: block; /* ya no se oculta */
        background-size: cover;
        background-position: center;
    }
}
