/* ================================
   REGISTRO - 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 */

.register-card {
    width: 480px;
    max-width: 100%;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(60, 40, 120, 0.12);
}


    /* CONTENIDO */

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


/* LOGO */

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

.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;
}


/* TITULOS */

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

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


/* FORMULARIO */

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

    .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;
        background: white;
        outline: none;
        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;
        }


/* SELECT */

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

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

    .form-select:hover {
        border-color: #bbb;
    }

    .form-select option {
        color: #4a4560;
        background: white;
    }


/* OPCIONAL */

.optional {
    color: #999;
    font-size: 11px;
    font-weight: 400;
}


/* BOTÓN */

.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;
    margin-top: 5px;
}

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


/* 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;
}


/* TEXTO LOGIN */

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

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

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


/* RESPONSIVE */

@media (max-width: 500px) {

    .auth-container {
        padding: 15px;
    }

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

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

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

.register-card {
    width: 430px;
    border-radius: 14px;
}

.register-card .login-content {
    padding: 30px;
}

.logo {
    margin-bottom: 18px;
}

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

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

.subtitle {
    margin-bottom: 18px;
}

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

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

@media (max-width: 500px) {
    .auth-container {
        padding: 10px;
    }

    .register-card .login-content {
        padding: 22px 18px;
    }

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