﻿/*!
 * Estilos de la pantalla de registro (propuesta): misma línea visual que index.
 * Copyright 2019-2024 Wefinz Solutions SL
 */

@font-face {
    font-family: 'Baloo 2';
    src: url('sme/fonts/Baloo2-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 800;
    font-display: swap;
}

body {
    font-size: 14px;
    background-color: #f8f9fa;
    color: #1d1d1b;
}

/* Fondo animado de tecnología: canvas fijo detrás del contenido (techbackground.js) */
#tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

body > .container {
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

/* Marca: isotipo y wordmark con degradado entre dos verdes de la paleta */
#wefinz-title {
    line-height: 1;
}

.wefinz-brand {
    display: inline-block;
}

.wefinz-isotipo-header {
    display: block;
    height: 6rem;
    width: auto;
    margin: 0 auto;
}

#wefinz-wordmark {
    display: inline-block;
    font-family: 'Baloo 2', Arial, sans-serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-top: .3rem;
    padding: 0 .1em;
    background: linear-gradient(90deg, #9bc331, #449d44);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #449d44;
}

/* Tarjeta de acceso */
.card.login-card {
    width: 26rem;
    max-width: 100%;
    border: 1px solid rgba(29, 29, 27, .07) !important;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, .92);
    box-shadow: 0 1.2rem 2.5rem -1rem rgba(29, 29, 27, .3) !important;
}

.login-title {
    margin: 0 0 1.4rem;
    font-family: 'Baloo 2', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.3px;
    color: #1d1d1b;
}

.login-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: .28rem;
    margin: .5rem auto 0;
    border-radius: .2rem;
    background-color: #9bc331;
}

/* Campos */
#user, #pass, #ckpass {
    height: calc(1.5em + 1.1rem);
    font-size: 14px;
    border-color: #d9ded3;
    border-radius: 0 .5rem .5rem 0;
}

.input-group-text.success-color {
    color: #86ac27;
    background-color: #f3f6ec;
    border-color: #d9ded3;
    border-radius: .5rem 0 0 .5rem;
}

#user:focus, #pass:focus, #ckpass:focus {
    border-color: #9bc331;
    box-shadow: 0 0 0 .2rem rgba(155, 195, 49, .3);
}

/* Interruptor "Recordarme" en verde de marca */
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #9bc331;
    border-color: #9bc331;
}

.custom-switch .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 .2rem rgba(155, 195, 49, .3);
}

.custom-control-label {
    padding-top: .1rem;
}

/* Botón principal (mismo estilo que en index) */
#btnRegister {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .6rem;
    padding: .7rem 1.5rem;
    border: 0;
    border-radius: 50rem;
    font-family: 'Baloo 2', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1d1d1b;
    background-image: linear-gradient(135deg, #b4d84e 0%, #9bc331 55%, #86ac27 100%);
    box-shadow: 0 .6rem 1.4rem -.35rem rgba(134, 172, 39, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

#btnRegister i {
    margin-left: .7rem;
    font-size: 1rem;
    transition: transform .2s ease;
}

#btnRegister:hover,
#btnRegister:focus {
    color: #1d1d1b;
    background-color: transparent;
    filter: brightness(1.05) saturate(1.08);
    transform: translateY(-2px);
    box-shadow: 0 .9rem 1.8rem -.4rem rgba(134, 172, 39, .85), inset 0 1px 0 rgba(255, 255, 255, .5);
}

#btnRegister:hover i,
#btnRegister:focus i {
    transform: translateX(.3rem);
}

#btnRegister:active {
    transform: translateY(0);
}

#btnRegister:focus {
    outline: 0;
    box-shadow: 0 0 0 .22rem rgba(155, 195, 49, .5), 0 .9rem 1.8rem -.4rem rgba(134, 172, 39, .85);
}

/* Enlaces */
.success-color {
    color: #3d443a;
}

form a.success-color {
    font-size: .95rem;
    text-decoration: none;
    background-image: linear-gradient(#9bc331, #9bc331);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 .15rem;
    transition: background-size .25s ease, color .2s ease;
}

form a.success-color:hover {
    color: #1d1d1b;
    background-size: 100% .15rem;
}

@media (min-width: 768px) {
    .wefinz-isotipo-header {
        height: 7.5rem;
    }

    #wefinz-wordmark {
        font-size: 5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #btnRegister,
    #btnRegister i,
    form a.success-color {
        transition: none;
    }
}

/* Mensaje de comprobación de contraseñas (el color lo fija signup.js) */
#message {
    display: inline-block;
    min-height: 1.4em;
    font-size: .9rem;
    font-weight: 500;
}
