/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ── */
html {
    height: 100%;
}

body {
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(110deg, #000742 0%, #00073E 34%, #000760 62%, #00076F 97%);
    position: relative;
    overflow-x: hidden;
}

/* ── Background radial overlay ── */
.bg-radial {
    position: fixed;
    inset: 0;
    opacity: 0.28;
    mix-blend-mode: color-dodge;
    background: radial-gradient(ellipse 65% 75% at 50% 45%, #5199D8 0%, #0045B1 28%, rgba(15, 26, 106, 0) 84%);
    pointer-events: none;
    z-index: 0;
}

/* ── Decorative SVGs ── */
.deco-right {
    position: fixed;
    right: -5vw;
    top: 28vh;
    width: 665.08px;
    height: 256.43px;
    transform: rotate(31.227deg);
    transform-origin: top right;
    pointer-events: none;
    z-index: 0;
}

.deco-left {
    position: fixed;
    left: -4vw;
    bottom: 28vh;
    width: 435.75px;
    height: 165.036px;
    transform: rotate(17.73deg);
    transform-origin: bottom left;
    pointer-events: none;
    z-index: 0;
}

/* ── Header ── */
header {
    position: relative;
    z-index: 10;
    width: 100%;
    height: clamp(60px, 8vh, 88px);
    background: rgba(0, 24, 56, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 5vw, 80px);
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    text-decoration: none;
}

.logo-icon {
    width: clamp(32px, 4vw, 50px);
    height: auto;
}

.logo-wordmark {
    width: clamp(56px, 6vw, 90px);
    height: auto;
}

.btn-home {
    height: clamp(34px, 4.5vh, 42px);
    padding: 0 clamp(12px, 1.5vw, 22px);
    background: #111640;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    outline: 1px solid #5C99EB;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-home:hover { background: #1a2060; }

.btn-home svg { flex-shrink: 0; }

.btn-home-text {
    color: #D9D9D9;
    font-size: 13px;
    font-family: Roboto, sans-serif;
    font-weight: 700;
}

/* ── Main ── */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 48px) clamp(12px, 4vw, 32px);
    position: relative;
    z-index: 1;
}

/* ── Login card ── */
.login-card {
    width: 100%;
    max-width: 545px;
    background: rgba(11, 13, 58, 0.48);
    border-radius: clamp(14px, 2vw, 20px);
    border: 1px solid rgba(37, 47, 119, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: clamp(22px, 3.5vw, 36px) clamp(18px, 3.5vw, 32px);
    display: flex;
    flex-direction: column;
}

.login-title {
    text-align: center;
    color: white;
    font-size: clamp(20px, 3.5vw, 29px);
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    color: #B0B5C9;
    font-size: clamp(13px, 2vw, 18px);
    font-family: Roboto, sans-serif;
    font-weight: 400;
    margin-bottom: clamp(20px, 3vh, 28px);
}

.card-divider {
    width: 100%;
    margin-bottom: clamp(16px, 2.5vh, 24px);
}

/* ── Form ── */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vh, 16px);
}

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

.field-label {
    color: #F4F4F4;
    font-size: clamp(10px, 1.2vw, 12px);
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.field-input {
    width: 100%;
    height: clamp(38px, 5vh, 44px);
    padding: 0 clamp(12px, 1.5vw, 20px);
    background: #E9E9E9;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    border: 1.5px solid transparent;
    color: #5E6774;
    font-size: clamp(13px, 1.5vw, 14px);
    font-family: Roboto, sans-serif;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.field-input::placeholder { color: #9aa0ae; }

.field-input:focus {
    border-color: #5C99EB;
    background: #f0f4ff;
}

.field-input.error { border-color: #e05656; }

.field-error {
    display: none;
    color: #f08080;
    font-size: 11px;
    font-family: Roboto, sans-serif;
}

.field-error.show { display: block; }

.forgot-link {
    align-self: flex-end;
    color: #7ba8e8;
    font-size: 12px;
    font-family: Roboto, sans-serif;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: -4px;
}

.forgot-link:hover { color: #82D5DC; }

/* ── Buttons ── */
.btn-login {
    width: 100%;
    height: clamp(38px, 5vh, 44px);
    background: linear-gradient(180deg, #5C9BEA 0%, #82D5DC 100%);
    box-shadow: 0px 2px 8px rgba(92, 155, 234, 0.30);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-login:hover   { opacity: 0.92; }
.btn-login:active  { transform: scale(0.99); }
.btn-login:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-login-text {
    color: white;
    font-size: clamp(14px, 1.8vw, 15px);
    font-family: 'Century Gothic', CenturyGothic, Futura, 'Trebuchet MS', sans-serif;
    font-weight: 700;
    text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.40);
    letter-spacing: 0.5px;
}

.separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: clamp(12px, 2vh, 18px) 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.separator-text {
    color: white;
    font-size: 12px;
    font-family: Roboto, sans-serif;
}

.btn-google {
    width: 100%;
	 color: #ffffff;          /* clave */
    height: clamp(38px, 5vh, 44px);
    background: #111640;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    outline: 1px solid #5C99EB;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
	text-decoration: none;   /* clave */
	
}

.btn-google:hover { background: #1a2060; }

.btn-google img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-google-text {
    color: #D9D9D9;
    font-size: clamp(12px, 1.5vw, 13px);
    font-family: Roboto, sans-serif;
    font-weight: 700;
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.footer-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #C4D2ED 0%, #CDDBF0 16%, #E1EFF8 37%, #E9F1FA 70%, #D4DFF2 92%);
    opacity: 0.03;
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 60px);
    padding: clamp(20px, 3.5vh, 32px) clamp(16px, 5vw, 80px) clamp(12px, 2vh, 20px);
    flex-wrap: wrap;
}

.footer-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}

.footer-logo-col svg,
.footer-logo-col img {
    display: block;
}

.footer-divider-line {
    width: 100%;
    height: 1px;
    background: rgba(29, 221, 225, 0.35);
    margin-bottom: 2px;
}

.footer-info-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 220px;
}

.footer-contact-label {
    color: white;
    font-size: 11px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.footer-info-item {
    color: #B0B5C9;
    font-size: clamp(12px, 1.4vw, 14px);
    font-family: Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

.footer-info-item a {
    color: #B0B5C9;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-info-item a:hover { color: #82D5DC; }

.footer-copyright {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    font-size: clamp(10px, 1.2vw, 13px);
    font-family: 'Century Gothic', CenturyGothic, Futura, 'Trebuchet MS', sans-serif;
    font-weight: 700;
    letter-spacing: clamp(1px, 0.4vw, 3.64px);
    padding: 0 16px clamp(12px, 1.8vh, 18px);
}





.footer-powered {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #B0B5C9;
    font-size: clamp(10px, 1.4vw, 12px);
    font-family: Roboto, sans-serif;
    font-weight: 500;
    letter-spacing: clamp(1px, 0.4vw, 3.64px);
    padding: 0 14px clamp(12px, 1.8vh, 18px);
	    line-height: 1.5;
}


/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 100;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
    max-width: min(300px, calc(100vw - 40px));
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: rgba(160, 30, 30, 0.96);
    color: white;
    border: 1px solid rgba(255, 100, 100, 0.4);
}

.toast.success {
    background: rgba(15, 65, 50, 0.96);
    color: white;
    border: 1px solid rgba(82, 213, 220, 0.4);
}

/* ── Responsive: tablet ── */
@media (max-width: 768px) {
    .deco-left {
        display: none;
    }

    .deco-right {
        opacity: 0.5;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-info-col {
        align-items: center;
        min-width: unset;
    }
}

/* ── Responsive: mobile ── */
@media (max-width: 480px) {
    .deco-right {
        display: none;
    }

    .logo-wordmark {
        display: none;
    }

    .login-card {
        border-radius: 14px;
    }

    .footer-logo-col {
        display: none;
    }

    .footer-inner {
        padding-top: 16px;
        padding-bottom: 8px;
    }

    .footer-info-item {
        font-size: 12px;
    }

    .toast {
        bottom: 16px;
        right: 12px;
        left: 12px;
        max-width: unset;
    }
}

/* ── Tall screens ── */
@media (min-height: 900px) {
    main { padding-top: 60px; padding-bottom: 60px; }
}
