﻿
:root {
    --primary: #4C6FFF !important;
    --primary-rgb: 76, 111, 255;
    --secondary: #777;
    --secondary-rgb: 255, 107, 107;
    --accent: #FFD166 !important;
    --accent-rgb: 255, 209, 102;
    --dark: #1A1F36;
    --light: #F7FAFF;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --disabled: #f3f6fc;
    --neutro: #777777;
    --text-primary: #444444;
    --white: #FFFFFF;
}

html, body, *, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fff;
}

.container-login {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.login-left {
    flex: 1;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.default-login-page .login-left:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(9, 16, 42, 0.40);
    z-index: 1;
    pointer-events: none;
}

.logo {
    margin: 40px 0 0 40px;
    width: 250px;
    height: auto;
    position: relative;
    z-index: 2;
}

.default-login-page .login-fondo-copy {
    position: absolute;
    left: 54px;
    right: 54px;
    bottom: 145px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.default-login-page .login-fondo-titulo {
    max-width: 560px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
}

.default-login-page .login-fondo-leyenda {
    max-width: 560px;
    margin-top: 24px;
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1.35;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin-top: -115px;
    position: relative;
}

fieldset.login-box {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 40px 40px 30px 40px;
    border: none;
    margin: 0;
    box-sizing: border-box;
}

.login-box h2 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.default-login-page .login-box h2 {
    margin-bottom: 14px;
    text-align: center;
}

.default-login-page .login-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #4b5568;
    font-size: 0.98rem;
    line-height: 1.3;
}

.default-login-page .login-subtitle .fa {
    color: #6b7280;
    font-size: 0.92rem;
}

.login-box hr {
    margin-bottom: 25px;
    border: none;
    border-top: 1px solid #eee;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    font-size: 0.98rem;
    margin-bottom: 6px;
    display: block;
}

.input-icon {
    position: relative;
    width: 100%;
}

    .input-icon input {
        width: 100%;
        box-sizing: border-box;
        padding: 8px 36px 8px 32px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1rem;
        outline: none;
        transition: border 0.2s;
        background: #fff;
        display: block;
    }

    .input-icon .fa {
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        font-size: 1rem;
    }

    .input-icon .fa-eye, .input-icon .fa-eye-slash {
        right: 8px;
        left: auto;
        cursor: pointer;
    }

.login-btn {
    width: 150px;
    background: #4267f4;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin: 18px 0 10px 0;
    transition: background 0.2s;
    display: block;
}

    .login-btn:hover {
        background: #365acb;
    }

.forgot-link {
    display: block;
    text-align: center;
    font-size: 0.92rem;
    color: #4267f4;
    text-decoration: underline;
    margin-top: 21px;
    margin-bottom: 18px;
}

.create-btn {
    width: 220px;
    background: #19c37d;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: background 0.2s;
}

    .create-btn:hover {
        background: #159a61;
    }

.login-btn-container {
    text-align: center;
    width: 100%;
}

.login-btn {
    display: inline-block;
    margin: 18px 0 10px 0;
    width: 150px;
}

.input-icon input.input-error {
    border-bottom: 1px solid #F44336 !important;
    background: #fff5f5 !important;
}

.input-icon .fa.input-error {
    color: #F44336 !important;
}

.validator {
    color: #F44336;
    font-size: 0.9em;
    margin-top: 2px;
    margin-left: 8px;
    display: block;
}

.login-message {
    color: #F44336;
    font-size: 0.9em;
    text-align: center;
    margin-top: 18px;
    min-height: 22px;
}

.default-login-page .login-message {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: auto;
    margin: 10px 0 0;
    padding: 12px 16px 12px 18px;
    border: 1px solid rgba(239, 68, 68, 0.55);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.10);
    color: #ff2d2d;
    font-size: 0.94rem;
    line-height: 1.35;
    text-align: left;
}

.default-login-page .login-message:empty {
    display: none;
}

.default-login-page .login-message-icon {
    flex: 0 0 auto;
    color: #ff2d2d;
    font-size: 1.08rem;
}

.default-login-page .login-message span {
    flex: 1;
}

a.recargar {
    text-decoration: none;
    color: var(--primary);
}

    a.recargar:hover {
        color: var(--dark);
        text-decoration: none;
    }


.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 10px;
    border: 2.5px solid #fff;
    border-top: 2.5px solid #4267f4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.login-copyright {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    color: #888;
    font-size: 0.81em;
    z-index: 2;
    background: transparent;
    pointer-events: none;
    text-align: center;
}


@media (max-width: 900px) {
    .container-login {
        flex-direction: column;
    }

    .login-left, .login-right {
        flex: none;
        width: 100vw;
        height: 21vh;
    }

    .login-right {
        height: 78vh;
        margin-top: -69px;
    }

    fieldset.login-box {
        width: 90vw;
        max-width: 400px;
        padding: 30px 10px 20px 10px;
    }

    .logo {
        margin: 20px 0 0 20px;
        width: 180px;
    }

    .default-login-page .login-fondo-copy {
        display: none;
    }
}
