﻿/*
 * Specific styles of signin component
 */
/*
 * General styles
 */
body, html {
    top: 0px;
    height: 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(#ea580c,whitesmoke);
}

.card-container.card {
    max-width: 350px;
    padding: 40px 40px;
}

.btn {
    font-weight: 700;
    height: 36px;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
}

/*
 * Card component
 */
.card {
    background-color: #F7F7F7;
    /* just in case there no content*/
    padding: 20px 25px 30px;
    margin: 0 auto 25px;
    margin-top: 50px;
    /* shadows and rounded borders */
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
}

.profile-img-card {
    width: 96px;
    height: 96px;
    margin: 0 auto 10px;
    display: block;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}

/*
 * Form styles
 */
.profile-name-card {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0 0;
    min-height: 1em;
}

/* .reauth-email { */
/*     display: block; */
/*     color: #404040; */
/*     line-height: 2; */
/*     margin-bottom: 10px; */
/*     font-size: 14px; */
/*     text-align: center; */
/*     overflow: hidden; */
/*     text-overflow: ellipsis; */
/*     white-space: nowrap; */
/*     -moz-box-sizing: border-box; */
/*     -webkit-box-sizing: border-box; */
/*     box-sizing: border-box; */
/* } */

/* .form-signin #inputEmail, */
/* .form-signin #inputPassword { */
/*     direction: ltr; */
/*     height: 44px; */
/*     font-size: 16px; */
/* } */

/* .form-signin input[type=email], */
/* .form-signin input[type=password], */
/* .form-signin input[type=text], */
/* .form-signin button { */
/*     width: 100%; */
/*     display: block; */
/*     margin-bottom: 10px; */
/*     z-index: 1; */
/*     position: relative; */
/*     -moz-box-sizing: border-box; */
/*     -webkit-box-sizing: border-box; */
/*     box-sizing: border-box; */
/* } */

.form-signin .form-control:focus {
    border-color: rgb(104, 145, 162);
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgb(104, 145, 162);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgb(104, 145, 162);
}

.btn.btn-signin {
    /*background-color: #4d90fe; */
    background-color: rgb(104, 145, 162);
    /* background-color: linear-gradient(rgb(104, 145, 162), rgb(12, 97, 33));*/
    padding: 0px;
    font-weight: 700;
    font-size: 14px;
    height: 36px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    border: none;
    -o-transition: all 0.218s;
    -moz-transition: all 0.218s;
    -webkit-transition: all 0.218s;
    transition: all 0.218s;
}

.btn.btn-signin:hover,
.btn.btn-signin:active,
.btn.btn-signin:focus {
    background-color: #0275d8;
}

.forgot-password {
    color: rgb(104, 145, 162);
}

.forgot-password:hover,
.forgot-password:active,
.forgot-password:focus{
    color: rgb(12, 97, 33);
}

/*
 * Login (/login). Las reglas de arriba siguen aplicando a elegir centro.
 */
body.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background-color: #fff7ed;
    background-image:
        radial-gradient(900px 480px at 8% -10%, rgba(234, 88, 12, 0.18), transparent 60%),
        radial-gradient(720px 420px at 100% 110%, rgba(194, 65, 12, 0.12), transparent 55%),
        linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.login-shell {
    width: min(980px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.login-aside {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 48px 40px;
    color: #f8fafc;
    background:
        linear-gradient(165deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.55)),
        linear-gradient(160deg, #7c2d12 0%, var(--sea-primary-dark, #c2410c) 48%, var(--sea-primary-light, #f97316) 100%);
}

.login-aside-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.login-aside-inner {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    padding: 8px;
    margin-bottom: 28px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.login-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.78);
}

.login-brand {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
}

.login-aside-text {
    margin: 0;
    max-width: 28ch;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(248, 250, 252, 0.88);
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px 28px;
}

.login-form {
    width: 100%;
}

.login-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sea-primary-dark, #c2410c);
}

.login-lead {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 15px;
}

.login-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.login-alert-error {
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.login-alert-info {
    color: #0f4c5c;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.login-input {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.login-input input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 44px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-input input::placeholder {
    color: #94a3b8;
}

.login-input input:hover {
    border-color: #cbd5e1;
}

.login-input input:focus {
    outline: none;
    background: #fff;
    border-color: var(--sea-primary, #ea580c);
    box-shadow: 0 0 0 4px var(--sea-primary-ring, rgba(234, 88, 12, 0.15));
}

.login-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    transform: translateY(-50%);
    cursor: pointer;
}

.login-toggle:hover,
.login-toggle:focus {
    color: #0f172a;
    background: #e2e8f0;
    outline: none;
}

.login-eye {
    width: 18px;
    height: 18px;
}

.login-submit {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 14px;
    background: var(--sea-primary-dark, #c2410c);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--sea-primary-glow, rgba(234, 88, 12, 0.24));
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.login-submit:hover,
.login-submit:focus {
    background: var(--sea-primary-darker, #9a3412);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px var(--sea-primary-glow, rgba(234, 88, 12, 0.28));
    outline: none;
}

.login-submit:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 36px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.login-footer p {
    margin: 0 0 4px;
}

/* Elegir centro (/sesion/centros) — reutiliza login-page */
.login-select {
    position: relative;
}

.login-select select {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 44px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-select select:hover {
    border-color: #cbd5e1;
}

.login-select select:focus {
    outline: none;
    background: #fff;
    border-color: var(--sea-primary, #ea580c);
    box-shadow: 0 0 0 4px var(--sea-primary-ring, rgba(234, 88, 12, 0.15));
}

.login-select::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #64748b;
    transform: translateY(-35%);
}

.login-field-filter {
    margin-bottom: 14px;
}

.login-field-filter .login-input input {
    padding-left: 44px;
}

.login-secondary {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 14px;
    line-height: 46px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.login-secondary:hover,
.login-secondary:focus {
    text-decoration: none;
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
    outline: none;
}

.login-link-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: color 0.15s ease, background 0.15s ease;
}

.login-link-btn:hover,
.login-link-btn:focus {
    color: #0f172a;
    background: #f1f5f9;
    outline: none;
}

.login-logout-form {
    margin: 0;
}

.login-empty-state {
    padding: 20px 0 8px;
    text-align: center;
    color: #64748b;
}

.login-submit-inline {
    display: inline-block;
    width: auto;
    min-width: 200px;
    margin-top: 16px;
    text-decoration: none;
    line-height: 52px;
    text-align: center;
}

@media (max-width: 840px) {
    body.login-page {
        padding: 16px;
        align-items: stretch;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-aside {
        min-height: 210px;
        align-items: flex-end;
        padding: 28px 24px;
    }

    .login-brand {
        font-size: 32px;
    }

    .login-aside-text {
        display: none;
    }

    .login-panel {
        padding: 32px 22px 22px;
    }
}