﻿.login-page {
    min-height: 100dvh;
    background: radial-gradient( 1200px 600px at 10% 10%, #2f6fa3 0%, transparent 60% ), linear-gradient( 135deg, #1f4f7a 0%, #2d6fa3 40%, #e9f1f8 100% );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    .login-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        border-radius: 18px;
    }
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}


.login-page,
.login-card,
.login-card * {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.login-title {
    font-weight: 600;
    letter-spacing: .2px;
}

.login-subtitle {
    font-weight: 400;
}

.login-btn {
    font-weight: 600;
}

.login-input {
    font-weight: 400;
}

.login-card {
    width: 100%;
    max-width: 400px;
    min-width: 400px;
    padding: 28px 28px 22px;
    background: #f2f7fc;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255,255,255,.6);
    margin: 0 auto;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .login-card {
        min-width: auto;
        max-width: 100%;
    }
}

.login-logo-skycom img,
.login-logo-empresa img {
    width: auto;
    max-width: 300px;
    margin-bottom: 20px;
}
.login-logo-empresa {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f4f7a;
    margin-bottom: 4px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    text-align: center;
}

.login-group {
    width: 100%;
    margin-bottom: 16px;
}

.login-input {
    height: 44px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    width: 100%;
    padding-left: 42px; /* espacio para icono izquierdo */
    padding-right: 42px; /* espacio para el ojo */
    box-sizing: border-box; /* 🔑 CLAVE */
    transition: border-color .2s, box-shadow .2s;
}

    .login-input:focus {
        border-color: #1f4f7a;
        box-shadow: 0 0 0 3px rgba(31,79,122,.15);
        outline: none;
    }
.login-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #1f4f7a;
    pointer-events: none;
}

.login-toggle-pass {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #1f4f7a;
}
.login-btn {
    height: 44px;
    border-radius: 10px;
    background: #1f4f7a;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
    transition: background .2s ease, transform .05s ease;
}

    .login-btn:hover {
        background: #163a5a;
    }

    .login-btn:active {
        transform: translateY(1px);
    }

.login-btn-outline {
    background: transparent;
    border: 1px solid #2c6a9c;
    color: #2c6a9c;
}

.login-btn-secondary {
    background: #6c757d;
}

.login-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

    .login-links a,
    .login-links button {
        color: #6b7280;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

        .login-links a:hover,
        .login-links button:hover {
            color: #1f4f7a;
            text-decoration: underline;
        }
.login-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #1f4f7a;
    cursor: pointer;
}

    .login-link:hover {
        text-decoration: underline;
    }

.login-actions {
    margin-top: 20px;
}
.login-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,.08); /* separación visual */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .login-footer img {
        height: 20px;
        opacity: .7;
        transition: opacity .2s ease;
    }

        .login-footer img:hover {
            opacity: 1;
        }

.login-powered {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 11px;
    opacity: .6;
}

    .login-powered img {
        height: 24px;
        display: block;
        margin: 0 auto 4px;
    }
.login-field {
    position: relative;
    width: 100%;
}
    .login-field i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #1f4f7a; /* mismo color que botón */
        opacity: .8;
    }
.login-error {
    font-size: 18px;
    color: #dc2626;
}

.login-error:empty,
.login-feedback:empty {
    display: none;
}
/* ENTRADA LOGIN */
@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card {
    animation: loginFadeUp .6s ease-out both;
}
/* BOTÓN BASE */
.login-btn {
    position: relative;
    overflow: hidden;
}

    /* TEXTO */
    .login-btn .btn-text {
        transition: opacity .2s ease;
    }

    /* SPINNER */
    .login-btn .btn-spinner {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
    }

        .login-btn .btn-spinner::after {
            content: "";
            width: 22px;
            height: 22px;
            border: 3px solid rgba(255,255,255,.4);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin .8s linear infinite;
        }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ESTADO LOADING */
.login-btn.loading {
    pointer-events: none;
}

    .login-btn.loading .btn-text {
        opacity: 0;
    }

    .login-btn.loading .btn-spinner {
        opacity: 1;
    }
/* ===============================
   TOAST / ALERT LOGIN
   =============================== */
.login-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    animation: toastFadeIn .35s ease;
}

.login-toast-error {
    background: #fdecea;
    border-left: 4px solid #c0392b;
}

.login-toast-text {
    color: #8a1f11;
    line-height: 1.4;
}

.login-toast-error i {
    color: #c0392b;
    font-size: 16px;
}

/* Animación */
@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
