/* ================================
   LOGIN - HOBBYHUB
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f5fb;
    min-height: 100vh;
}


/* CONTENEDOR */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}


/* TARJETA */

.login-card {
    width: 950px;
    max-width: 100%;
    min-height: 560px;
    display: flex;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(60, 40, 120, 0.12);
}


/* CONTENIDO LOGIN */

.login-content {
    width: 55%;
    padding: 55px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #6046e8, #8d75ff);
    color: white;
    font-size: 25px;
    font-weight: bold;
    border-radius: 14px;
}

.logo h1 {
    color: #29234a;
    font-size: 23px;
    margin-bottom: 2px;
}

.logo span {
    color: #707070;
    font-size: 11px;
}


/* TITULOS */

.login-content h2 {
    color: #27213f;
    font-size: 28px;
    margin-bottom: 7px;
}

.subtitle {
    color: #707070;
    font-size: 14px;
    margin-bottom: 25px;
}


/* FORMULARIO */

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #4a4560;
        margin-bottom: 7px;
    }


    /* INPUTS */

    .form-group input {
        width: 100%;
        height: 44px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 0 13px;
        font-size: 13px;
        font-family: "Segoe UI", Arial, sans-serif;
        outline: none;
        background: white;
        transition: 0.2s;
    }

        .form-group input:focus {
            border-color: #6650e9;
            box-shadow: 0 0 0 3px rgba(102, 80, 233, 0.1);
        }

        .form-group input::placeholder {
            color: #aaa;
        }


/* PASSWORD */

.password-container {
    position: relative;
}

    .password-container input {
        padding-right: 78px;
    }

.show-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.6;
    padding: 5px;
}

    .show-password:hover {
        opacity: 1;
    }


/* BUTTON */

.btn-login {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: linear-gradient( 90deg, #6351e9, #705cf1 );
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 15px rgba(99, 81, 233, 0.25);
    }

    .btn-login:disabled {
        opacity: 0.7;
        cursor: wait;
    }


/* REGISTRO */

.register-text {
    text-align: center;
    font-size: 12px;
    color: #707070;
    margin-top: 20px;
}

    .register-text a {
        color: #604de8;
        font-weight: 600;
        text-decoration: none;
    }

        .register-text a:hover {
            text-decoration: underline;
        }


/* RECUPERAR CONTRASEÑA */

.forgot-password {
    display: block;
    text-align: center;
    font-size: 11px;
    margin-top: 10px;
    color: #604de8;
    font-weight: 600;
    text-decoration: none;
}

    .forgot-password:hover {
        text-decoration: underline;
    }


/* MENSAJES */

.error-message {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f3cccc;
    padding: 10px;
    border-radius: 7px;
    font-size: 12px;
    margin-bottom: 15px;
}

.success-message {
    background: #effaf2;
    color: #2e8b57;
    border: 1px solid #ccebd5;
    padding: 10px;
    border-radius: 7px;
    font-size: 12px;
    margin-bottom: 15px;
}


/* VALIDACIONES */

.validation-message {
    display: block;
    color: #d9534f;
    font-size: 11px;
    margin-top: 4px;
}


/* PANEL DERECHO */

.welcome-panel {
    width: 45%;
    background: linear-gradient( 135deg, #d8d2ff, #bdb5ff );
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}


    /* DECORACIONES */

    .welcome-panel::before {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        top: -100px;
        right: -80px;
    }

    .welcome-panel::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        bottom: -70px;
        left: -60px;
    }


/* CONTENIDO PANEL */

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #4536a3;
    padding: 30px;
}

    .welcome-content h2 {
        font-size: 21px;
        margin-bottom: 5px;
    }

    .welcome-content h3 {
        font-size: 20px;
        line-height: 1.4;
        font-weight: 600;
    }


/* ICONOS */

.hobby-icons {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(3, 60px);
    gap: 18px;
    justify-content: center;
}

    .hobby-icons span {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.55);
        border-radius: 16px;
        font-size: 25px;
        box-shadow: 0 5px 15px rgba(70, 50, 150, 0.08);
    }


/* RESPONSIVE */

@media (max-width: 750px) {

    .login-card {
        flex-direction: column;
    }

    .login-content {
        width: 100%;
        padding: 40px 30px;
    }

    .welcome-panel {
        width: 100%;
        min-height: 260px;
    }

    .welcome-content {
        padding: 35px;
    }
}


@media (max-width: 450px) {

    .auth-container {
        padding: 15px;
    }

    .login-content {
        padding: 30px 22px;
    }

    .welcome-panel {
        min-height: 220px;
    }

    .welcome-content h2 {
        font-size: 18px;
    }

    .welcome-content h3 {
        font-size: 17px;
    }

    .hobby-icons {
        gap: 10px;
    }
}

/* Acceso: texto legible y jerarquía clara también en pantallas pequeñas. */
.auth-container { background: radial-gradient(circle at 15% 10%, #e8e5ff, transparent 35%), #f4f5fb; }
.login-card { border: 1px solid #e7e5f4; border-radius: 20px; box-shadow: 0 20px 55px rgba(42, 37, 102, .12); }
.login-content h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }
.subtitle { max-width: 34ch; font-size: .92rem; line-height: 1.55; }
.form-group input, .btn-login { min-height: 46px; font-size: .9rem; }
.register-text, .forgot-password, .privacy-link { font-size: .85rem; }
.privacy-link { display: block; margin-top: .75rem; text-align: center; color: #5140bd; font-weight: 600; }
.login-card :focus-visible { outline: 3px solid #4835b8; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .login-card *, .login-card *::before, .login-card *::after { transition: none !important; } }

/* COMPACT RESPONSIVE OVERRIDES */
.auth-container {
    padding: 20px;
}

.login-card {
    width: 820px;
    min-height: 500px;
    border-radius: 14px;
}

.login-content {
    padding: 42px 48px;
}

.logo {
    margin-bottom: 26px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
}

.login-content h2 {
    font-size: 24px;
}

.subtitle {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group input,
.btn-login {
    height: 40px;
}

.welcome-content h2 {
    font-size: 19px;
}

.welcome-content h3 {
    font-size: 18px;
}

.hobby-icons {
    margin-top: 26px;
    grid-template-columns: repeat(3, 50px);
    gap: 14px;
}

.hobby-icons span {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    font-size: 22px;
}

@media (max-width: 900px) {
    .login-card {
        width: min(720px, 100%);
    }

    .login-content {
        padding: 34px 36px;
    }
}

@media (max-width: 750px) {
    .login-card {
        min-height: 0;
    }

    .welcome-panel {
        min-height: 190px;
    }

    .welcome-content {
        padding: 24px;
    }

    .hobby-icons {
        grid-template-columns: repeat(6, 38px);
        gap: 8px;
    }

    .hobby-icons span {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 18px;
    }
}

@media (max-width: 450px) {
    .auth-container {
        align-items: flex-start;
        padding: 10px;
    }

    .login-content {
        padding: 24px 18px;
    }

    .welcome-panel {
        display: none;
    }
}
