/* ==========================================
   VARIABLES
========================================== */

:root {
    --primary: #087ff5;
    --primary-dark: #0564c9;
    --green: #39d353;
    --dark-blue: #082b59;
    --text: #17345c;
    --muted: #7085a5;
    --background: #eef7ff;
    --white: #ffffff;
    --border: #d5dfed;
    --shadow: 0 25px 60px rgba(20, 65, 110, 0.14);
}

/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
}

/* ==========================================
   PAGE
========================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    padding: 28px;
}
/* ==========================================
   PROMO PANEL
========================================== */

.promo-panel {
    width: 64%;
    min-height: calc(100vh - 56px);
    position: relative;
    overflow: hidden;
    border-radius: 25px 0 0 25px;
    color: white;
}

.promo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7,32,63,.88) 0%, rgba(7,32,63,.55) 45%, rgba(7,50,99,.85) 100%),
        radial-gradient(circle at 20% 20%, rgba(29, 148, 255, .25), transparent 40%);
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 50px 58px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   BRAND
========================================== */
.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
}

/* ==========================================
   PROMO TITLE
========================================== */

.promo-title {
    margin-top: 44px;
}

.promo-title h1 {
    max-width: 520px;
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.promo-title h1 span {
    display: block;
    color: #48df58;
}

.promo-title p {
    margin-top: 18px;
    max-width: 480px;
    font-size: 16px;
    line-height: 1.5;
    opacity: .9;
}

/* ==========================================
   FEATURES
========================================== */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
    max-width: 500px;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 6px;
}

.feature-icon.green { background: #22c55e; }
.feature-icon.purple { background: #6366f1; }
.feature-icon.orange { background: #f97316; }
.feature-icon.blue { background: #1687ff; }

.feature strong { font-size: 13px; }
.feature small { font-size: 10.5px; opacity: .7; }

/* ==========================================
   PROMO BOTTOM
========================================== */

.promo-bottom {
    margin-top: auto;
    padding-top: 24px;
}

.promo-tagline {
    font-size: 20px;
    font-style: italic;
    font-family: 'Segoe Script', cursive;
    color: #48df58;
    line-height: 1.2;
    margin-bottom: 16px;
}

.dots {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
}

.dots span {
    width: 25px;
    height: 5px;
    border-radius: 10px;
    background: rgba(255,255,255,.3);
}

.dots .active {
    width: 30px;
    background: #24b64b;
}

.qualities {
    font-size: 15px;
    opacity: .9;
}

.qualities span {
    margin: 0 10px;
}

/* ==========================================
   LOGIN PANEL
========================================== */

.login-panel {
    width:36%;
    min-height: calc(100vh - 56px);
    background: white;
    border-radius: 0 25px 25px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.language {
    position: absolute;
    top: 32px;
    right: 42px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #587091;
    font-size: 13px;
}

.login-container {
     width: 82%;
    max-width: 420px;
    margin: auto;
    padding: 30px 0;
}

/* ==========================================
   LOGIN BRAND
========================================== */

.login-brand {
    display: flex;
    justify-content: center;
}

.login-brand-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.blue-icon { font-size: 38px; }

.login-brand .brand-name {
    color: #0c315d;
    font-size: 40px;
}

.login-brand-subtitle {
    text-align: center;
    color: #637997;
    letter-spacing: 3px;
    font-size: 9px;
    margin-top: 4px;
}

/* ==========================================
   HEADER
========================================== */

.login-header {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 26px;
}

.login-header h2 {
    font-size: 34px;
    color: #102f58;
    letter-spacing: -1px;
}

.login-header p {
    color: #7387a4;
    margin-top: 7px;
    font-size: 15px;
}

/* ==========================================
   ALERTA DE ERROR DE LOGIN
========================================== */

.form-alert {
    background: #fdeceb;
    border: 1px solid #f5c2bf;
    color: #b3261e;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ==========================================
   INPUTS
========================================== */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #163761;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 58px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 50px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    color: #19385e;
    transition: .2s;
    background: white;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8,127,245,.08);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7185a2;
    font-size: 17px;
}

.show-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

.error-message {
    color: #e5484d;
    font-size: 11px;
    margin-top: 6px;
}

/* ==========================================
   OPTIONS
========================================== */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 25px;
    font-size: 12px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #506785;
}

.remember input {
    display: none;
}

.checkmark {
    width: 21px;
    height: 21px;
    border: 1px solid #b9c9dc;
    border-radius: 5px;
    position: relative;
}

.remember input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.remember input:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 13px;
    left: 4px;
    top: 1px;
}

.login-options a {
    text-decoration: none;
    color: #087ff5;
    font-weight: 600;
}

.login-options a:hover {
    text-decoration: underline;
}

/* ==========================================
   LOGIN BUTTON
========================================== */

.login-button {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #087ff5, #0878ed);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: .2s;
    box-shadow: 0 10px 22px rgba(8,127,245,.2);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8,127,245,.27);
}

.login-button:active {
    transform: translateY(0);
}

.arrow {
    font-size: 22px;
}

/* ==========================================
   SEPARATOR
========================================== */

.separator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 28px 0;
    color: #8192aa;
    font-size: 12px;
}

.separator span {
    height: 1px;
    background: #dce4ee;
    flex: 1;
}

/* ==========================================
   COMPANY BUTTON
========================================== */

.company-button {
    width: 100%;
    height: 58px;
    border-radius: 12px;
    border: 1px solid #087ff5;
    background: white;
    color: #0874df;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .2s;
}

.company-button:hover {
    background: #f1f8ff;
}

.company-icon {
    font-size: 18px;
}

/* ==========================================
   CONTACT BOX
========================================== */

.contact-box {
    background: #f1f7fd;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    font-size: 12px;
    color: #536c8b;
}

.contact-box a {
    color: #087ff5;
    text-decoration: none;
    font-weight: 700;
}

/* ==========================================
   FOOTER
========================================== */

.login-panel footer {
    padding: 25px;
    color: #7890af;
    font-size: 11px;
    text-align: center;
}

/* ==========================================
   MODAL
========================================== */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.active {
    display: flex;
}

.modal-background {
    position: absolute;
    inset: 0;
    background: rgba(7, 32, 63, .55);
    backdrop-filter: blur(5px);
}

.modal-card {
    position: relative;
    z-index: 2;
    width: 420px;
    max-width: calc(100% - 30px);
    background: white;
    border-radius: 20px;
    padding: 38px;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    animation: modalIn .2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(15px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 15px;
    border: none;
    background: none;
    font-size: 27px;
    color: #7185a2;
    cursor: pointer;
}

.modal-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: #eaf5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    margin-bottom: 20px;
}

.modal-card h3 {
    font-size: 24px;
    color: #102f58;
}

.modal-card p {
    color: #7287a3;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 7px;
    margin-bottom: 25px;
}

.modal-cancel {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px;
    margin-top: 8px;
    color: #627895;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {
    .login-page { padding: 15px; }
    .promo-content { padding: 35px; }
    .features { gap: 12px; }

}

@media (max-width: 850px) {
    .login-page { padding: 0; }
    .promo-panel { display: none; }
    .login-panel {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }
  .login-container {
    width: 78%;
    max-width: 500px;
    margin: auto;
    padding: 30px 0;
}
}

@media (max-width: 480px) {
    .language { top: 20px; right: 20px; }
    .login-container { padding-top: 70px; }
    .login-brand .brand-name { font-size: 34px; }
    .login-header h2 { font-size: 28px; }
    .login-options { align-items: flex-start; gap: 10px; }
    .contact-box { flex-direction: column; text-align: center; }
}
