/* =========================================================
   Weclick · Inicio de sesión
   ========================================================= */

@font-face {
    font-family: 'product-sans';
    src: url('../css/fonts/product-sans/ProductSans-Regular.ttf');
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'product-sans', Arial, sans-serif;
    background: url('../images/login/fondo.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: relative;
}

.wc-login-stage {
    position: absolute;
    top: 50%;
    left: 78%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 48px));
    z-index: 2;
}
.wc-login-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(15, 8, 45, .30);
    padding: 32px 34px 24px;
    color: #1b1830;
}
.wc-login-card-head {
    text-align: center;
    margin-bottom: 18px;
}
.wc-login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    text-decoration: none;
}
.wc-login-logo img {
    width: 152px;
    max-width: 100%;
    height: auto;
    display: block;
}
.wc-login-eyebrow {
    display: block;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9b97ad;
}
.wc-login-title {
    margin: 5px 0 4px;
    font-size: 1.34rem;
    font-weight: 800;
    color: #17142b;
    letter-spacing: -.02em;
}
.wc-login-sub {
    margin: 0;
    font-size: .79rem;
    color: #7e7a91;
}
.wc-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 3, 81, .22);
    border-radius: 11px;
    background: rgba(255, 3, 81, .07);
    color: #a3003f;
}
.wc-login-alert-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #FF0351;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}
.wc-login-alert strong {
    display: block;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
}
.wc-login-alert span:last-child {
    display: block;
    margin-top: 2px;
    font-size: .72rem;
    line-height: 1.4;
    color: #8f3b56;
}

.wc-login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e2ef;
    border-radius: 11px;
    background: #f8f7fb;
    color: #252238;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.wc-login-google:hover {
    background: #f1eff7;
    border-color: #d9d5e7;
    color: #17142b;
    text-decoration: none;
    transform: translateY(-1px);
}
.wc-login-google .auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
}
.wc-google-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
}
.wc-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a09cad;
}
.wc-login-divider::before,
.wc-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eae7f1;
}
.wc-login-form .form-group,
.wc-login-field { margin-bottom: 14px; }
.wc-login-form label {
    display: block;
    margin-bottom: 5px;
    color: #433f59;
    font-size: .75rem;
    font-weight: 700;
}
.wc-login-form .form-control {
    height: 46px;
    padding: 0 13px;
    border: 1px solid #dedbe8;
    border-radius: 10px;
    background: #f8f7fb;
    color: #17142b;
    font-size: .87rem;
    box-shadow: none;
}
.wc-login-form .form-control:focus {
    border-color: #FF0351;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 3, 81, .12);
}
.wc-login-form .form-control::placeholder { color: #a5a1b3; }
.wc-login-password {
    position: relative;
}
.wc-login-password .form-control {
    padding-right: 46px;
}
.wc-login-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a8699;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}
.wc-login-eye:hover,
.wc-login-eye:focus {
    background: #f1eff7;
    color: #17142b;
    outline: none;
}
.wc-login-eye:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 3, 81, .16);
}
.wc-login-eye svg {
    width: 18px;
    height: 18px;
    display: block;
}
.wc-login-eye .wc-eye-closed { display: none; }
.wc-login-eye.is-visible .wc-eye-open { display: none; }
.wc-login-eye.is-visible .wc-eye-closed { display: block; }
.wc-login-submit {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF0351 0%, #d1005f 100%);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: 0 12px 24px rgba(255, 3, 81, .24);
    transition: transform .16s ease, box-shadow .16s ease;
}
.wc-login-submit:hover,
.wc-login-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255, 3, 81, .32);
}
.wc-login-check {
    display: flex !important;
    align-items: center !important;
    gap: 14px;
    min-height: 20px;
    padding-left: 0 !important;
    margin: 2px 0 14px;
    line-height: 1;
}
.wc-login-check .form-check-input {
    float: none !important;
    position: static;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0 !important;
    border: 1px solid #cfcbdd;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
}
.wc-login-check .form-check-input:checked {
    background-color: #FF0351;
    border-color: #FF0351;
}
.wc-login-check .form-check-input:focus {
    border-color: #FF0351;
    box-shadow: 0 0 0 3px rgba(255, 3, 81, .12);
}
.wc-login-check .form-check-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    color: #5f5b73;
    cursor: pointer;
}
.wc-login-form .invalid-feedback { font-size: .72rem; }
.wc-login-copy {
    margin: 18px 0 0;
    text-align: center;
    font-size: .69rem;
    color: #9a96a9;
}

@media (max-width: 1199.98px) {
    .wc-login-stage {
        left: 50%;
        width: min(420px, calc(100vw - 48px));
    }
}
@media (max-width: 575.98px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto !important;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 16px 0;
        overflow-x: hidden;
        background-image: url('../images/login/fondo_movil.png');
    }
    .wc-login-stage {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: calc(100% - 24px);
        margin: 0 auto;
    }
    .wc-login-card {
        padding: 20px 18px 14px;
        border-radius: 18px;
    }
    .wc-login-card-head { margin-bottom: 12px; }
    .wc-login-logo img { width: 122px; }
    .wc-login-title { font-size: 1.16rem; }
    .wc-login-google { padding: 10px 12px; }
    .wc-login-divider { margin: 12px 0; }
    .wc-login-form .wc-login-field { margin-bottom: 10px; }
    .wc-login-form .form-control { height: 44px; }
    .wc-login-check { margin: 2px 0 10px; }
    .wc-login-submit { height: 44px; margin-top: 4px; }
    .wc-login-copy { margin-top: 8px; }
}
