/* =========================================
   RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --white: #ffffff;
    --background: #f7f8fa;
    --border: #e7e8ec;
    --text: #17181c;
    --text-light: #777b85;
    --text-muted: #a0a3aa;
    --black: #111111;
    --black-hover: #2b2b2b;
}
/* =========================================
   BODY & CONTAINER
========================================= */
body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
/* =========================================
   LOGIN BOX
========================================= */
.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}
/* =========================================
   LOGO (IMAGEN)
========================================= */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-img {
    max-width: 250px;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
/* =========================================
   MENSAJE
========================================= */
.message {
    padding: 13px 15px;
    border-radius: 9px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}
.message.success {
    background: #f1f8f3;
    border: 1px solid #cfe8d6;
    color: #347044;
}
.message.error {
    background: #fff4f4;
    border: 1px solid #f0cccc;
    color: #b43d3d;
}
/* =========================================
   FORM GROUP
========================================= */
.form-group {
    margin-bottom: 16px;
}
.form-group > label,
.password-label label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
/* =========================================
   INPUTS & SELECT
========================================= */
.input-container {
    height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    transition: 0.2s ease;
}
.input-container:focus-within {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}
.input-icon {
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}
.input-container input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 12px;
    color: var(--text);
    background: transparent;
    padding-right: 10px;
}
.input-container select {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    padding-left: 5px;
    cursor: pointer;
}
.input-container select option {
    color: var(--text);
    background: var(--white);
}
.input-container input::placeholder {
    color: var(--text-light);
    opacity: 1;
}
/* =========================================
   PASSWORD
========================================= */
.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.password-label label {
    margin: 0;
}
.password-label a {
    font-size: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
.password-label a:hover {
    color: var(--black);
    text-decoration: underline;
}
.show-password {
    width: 38px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
}
.show-password:hover {
    color: var(--black);
}
/* =========================================
   BOTÓN LOGIN
========================================= */
.login-button {
    width: 100%;
    height: 44px;
    border: 1px solid var(--black);
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}
.login-button:hover {
    background: var(--black-hover);
    border-color: var(--black-hover);
}
.login-button:active {
    transform: scale(0.99);
}
.button-arrow {
    font-size: 16px;
    color: var(--white);
}
/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    .login-box {
        padding: 24px 20px;
    }
}
/* =========================================
   RECUPERAR CONTRASEÑA
========================================= */
.back-button {
    margin-bottom: 25px;
}
.back-button a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}
.back-button a:hover {
    color: var(--black);
    transform: translateX(-3px);
}
.recovery-info {
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px 16px;
    margin: 20px 0;
}
.recovery-info strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 5px;
}
.recovery-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
}
.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.form-footer p {
    display: inline;
    color: var(--text-muted);
    font-size: 13px;
}
.form-footer a {
    margin-left: 5px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.form-footer a:hover {
    color: var(--black-hover);
    text-decoration: underline;
}
/* =========================================
   OCULTAR CONTROLES DE CONTRASEÑA
========================================= */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
}
input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
}
/* =========================================
   PIE DE PÁGINA ANIMADO
========================================= */
.login-footer {
    position: fixed;
    bottom: 18px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    z-index: 10;
    pointer-events: none;
    font-family: inherit;
}
.footer-line {
    width: 90px;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(90deg, transparent, #111111, #777b85, #111111, transparent);
    background-size: 200% 100%;
    animation: footerLineGlow 3s linear infinite;
}
.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
}
.footer-label,
.footer-author,
.footer-year {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-shadow: none;
}
.footer-year {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.footer-caption {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
}
.login-footer.footer-highlight .footer-author {
    color: var(--text-light);
    text-shadow: none;
}
@keyframes footerLineGlow {
    0% { background-position: 100% 0; opacity: 0.65; }
    50% { opacity: 1; }
    100% { background-position: -100% 0; opacity: 0.65; }
}
@media (max-height: 600px) {
    .login-footer {
        position: relative;
        bottom: auto;
        margin: 18px 0 12px;
    }
}
@media (max-width: 480px) {
    .login-footer {
        bottom: 12px;
        gap: 6px;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .footer-credit,
    .footer-label,
    .footer-author,
    .footer-year {
        font-size: 10px;
    }
    .footer-caption {
        font-size: 9px;
    }
}
