/* ============================================
   LOGIN.CSS — SkinPro SOS
   Mobile First | 4 breakpoints exactos
   ============================================ */

/* ============================================
   1. BASE MÓVIL
   ============================================ */

.login-wrap {
    width: 100dvw;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #0D1F3C;
}

.login-aside {
    width: 100%;
    min-height: 22em;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(18, 48, 93, 0.88) 0%, rgba(13, 31, 60, 0.95) 100%),
        url('../img/sos-bg.webp') center center / cover no-repeat;
    display: flex;
    align-items: flex-end;
}

.aside-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(80, 136, 220, .15) 0%, transparent 70%);
    pointer-events: none;
}

.aside-content {
    width: 100%;
    padding: 2em 1.8em 2.2em;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.aside-logo img {
    width: 9em;
    height: auto;
}

.aside-text {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.aside-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #87B7FF;
    opacity: .9;
}

.aside-title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #DCEAFF;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.aside-title em {
    font-style: normal;
    color: #F3B950;
}

.aside-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    font-weight: 300;
    color: rgba(178, 209, 255, .7);
    line-height: 1.6;
    max-width: 28em;
}

.aside-badge {
    display: flex;
    align-items: center;
    gap: .5em;
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem;
    color: rgba(135, 183, 255, .6);
}

.badge-dot {
    width: .5em;
    height: .5em;
    border-radius: 50%;
    background: #29a719;
    box-shadow: 0 0 0 3px rgba(41, 167, 25, .2);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(41, 167, 25, .2); }
    50%       { box-shadow: 0 0 0 6px rgba(41, 167, 25, .05); }
}

.login-form-wrap {
    width: 100%;
    flex-grow: 1;
    background: #0D1F3C;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5em 1.8em 3em;
}

.login-form-inner {
    width: 100%;
    max-width: 22em;
    display: flex;
    flex-direction: column;
    gap: 1.8em;
}

.form-header {
    display: flex;
    flex-direction: column;
    gap: .4em;
}

.form-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #DCEAFF;
    letter-spacing: -.02em;
}

.form-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    font-weight: 300;
    color: rgba(135, 183, 255, .6);
    line-height: 1.5;
}

.alert-error {
    display: flex;
    align-items: center;
    gap: .7em;
    padding: .9em 1em;
    background: rgba(126, 0, 16, .15);
    border: 1px solid rgba(126, 0, 16, .4);
    border-radius: .6em;
    color: #ff6b7a;
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
}

.alert-error svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    color: #ff6b7a;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: .4em;
}

.field-label {
    font-family: 'DM Sans', sans-serif;
    font-size: .8rem;
    font-weight: 500;
    color: #87B7FF;
    letter-spacing: .03em;
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    width: 1em;
    height: 1em;
    position: absolute;
    left: .9em;
    color: rgba(135, 183, 255, .4);
    pointer-events: none;
    flex-shrink: 0;
}

.field-input {
    width: 100%;
    height: 3em;
    background: #12305D;
    border: 1px solid rgba(80, 136, 220, .2);
    border-radius: .6em;
    padding: 0 3em 0 2.6em;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: #DCEAFF;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.field-input::placeholder {
    color: rgba(135, 183, 255, .35);
}

.field-input:focus {
    border-color: #5088DC;
    background: #1A3F73;
    box-shadow: 0 0 0 3px rgba(80, 136, 220, .15);
}

.field-input.field-error {
    border-color: rgba(126, 0, 16, .6);
}

.field-toggle {
    position: absolute;
    right: .8em;
    background: none;
    border: none;
    cursor: pointer;
    padding: .3em;
    display: flex;
    align-items: center;
    color: rgba(135, 183, 255, .4);
    transition: color .2s;
}

.field-toggle:hover {
    color: #87B7FF;
}

.field-toggle svg {
    width: 1.1em;
    height: 1.1em;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.remember-wrap {
    display: flex;
    align-items: center;
    gap: .5em;
    cursor: pointer;
}

.remember-wrap input[type="checkbox"] {
    display: none;
}

.remember-check {
    width: 1em;
    height: 1em;
    border: 1px solid rgba(80, 136, 220, .3);
    border-radius: .2em;
    background: #12305D;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}

.remember-wrap input:checked + .remember-check {
    background: #5088DC;
    border-color: #5088DC;
}

.remember-wrap input:checked + .remember-check::after {
    content: '';
    width: .35em;
    height: .6em;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-.05em);
    display: block;
}

.remember-label {
    font-family: 'DM Sans', sans-serif;
    font-size: .8rem;
    color: rgba(135, 183, 255, .55);
}

.forgot-link {
    font-family: 'DM Sans', sans-serif;
    font-size: .8rem;
    color: rgba(135, 183, 255, .5);
    text-decoration: none;
    transition: color .2s;
}

.forgot-link:hover {
    color: #F3B950;
}

.btn-login {
    width: 100%;
    height: 3em;
    background: #5088DC;
    border: none;
    border-radius: .6em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    font-family: 'Syne', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    color: #DCEAFF;
    cursor: pointer;
    margin-top: .4em;
    transition: background .2s, transform .15s, box-shadow .2s;
    letter-spacing: .02em;
}

.btn-login svg {
    width: 1em;
    height: 1em;
    transition: transform .2s;
}

.btn-login:hover {
    background: #6A9FE8;
    box-shadow: 0 4px 20px rgba(80, 136, 220, .35);
    transform: translateY(-1px);
}

.btn-login:hover svg {
    transform: translateX(3px);
}

.btn-login:active {
    transform: translateY(0);
    background: #3D74CA;
}

.form-footer {
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem;
    color: rgba(135, 183, 255, .35);
    text-align: center;
    line-height: 1.8;
}

.form-footer a {
    color: rgba(135, 183, 255, .45);
    text-decoration: none;
    transition: color .2s;
}

.form-footer a:hover {
    color: #F3B950;
}

/* ============================================
   2. TABLETS / MÓVILES GRANDES — 481px - 768px
   ============================================ */
@media only screen and (min-width: 481px) and (max-width: 768px) {

    .login-aside { min-height: 26em; }
    .aside-title { font-size: 2.5rem; }
    .aside-content { padding: 2.5em 3em 3em; }
    .login-form-wrap { padding: 3em 3em 4em; }
}

/* ============================================
   3. TABLETS PRO VERTICAL — 769px - 1279px portrait
   ============================================ */
@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: portrait) {

    .login-aside { min-height: 38em; }
    .aside-content { padding: 3em 4em 4em; gap: 1.8em; }
    .aside-logo img { width: 11em; }
    .aside-title { font-size: 3.5rem; }
    .aside-desc { font-size: .95rem; max-width: 36em; }
    .login-form-wrap { padding: 4em; }
    .login-form-inner { max-width: 28em; }
    .form-title { font-size: 2.2rem; }
}

/* ============================================
   4. TABLETS HORIZONTAL / LAPTOPS — 769px - 1279px landscape
   ============================================ */
@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: landscape) {

    .login-wrap { flex-direction: row; }
    .login-aside { width: 50%; min-height: 100dvh; }
    .aside-content { padding: 3em; gap: 1.5em; }
    .aside-logo img { width: 10em; }
    .aside-title { font-size: 2.8rem; }
    .login-form-wrap { width: 50%; min-height: 100dvh; padding: 3em 2.5em; }
    .login-form-inner { max-width: 24em; }
}

/* ============================================
   5. ESCRITORIO — 1280px+
   ============================================ */
@media only screen and (min-width: 1280px) {

    .login-wrap { flex-direction: row; }
    .login-aside { width: 55%; min-height: 100dvh; }

    .aside-content { padding: 4em 5em 5em; gap: 2em; }
    .aside-logo img { width: 12em; }
    .aside-tag { font-size: .78rem; letter-spacing: .2em; }
    .aside-title { font-size: 4.5rem; line-height: 1.05; }
    .aside-desc { font-size: 1rem; max-width: 34em; }
    .aside-badge { font-size: .8rem; }

    .login-form-wrap { width: 45%; min-height: 100dvh; padding: 4em 5dvw; }
    .login-form-inner { max-width: 26em; gap: 2.2em; }
    .form-title { font-size: 2.4rem; }
    .form-subtitle { font-size: .9rem; }
    .field-input { height: 3.2em; font-size: .95rem; }
    .btn-login { height: 3.2em; font-size: 1rem; }
}
