:root {
    --bg-primary: #080909;
    --bg-secondary: #111111;
    --input-bg: #111111;
    --input-border: #383838;
    --border: #555555;
    --text-primary: #F0F0F0;
    --text-secondary: #858585;
    --placeholder: #929292;
    --accent: #FFC400;
    --accent-hover: #FFD329;
}

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

body {
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, #151515 0%, #090909 55%, #050505 100%);
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/static/assets/images/IMG_4390.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}

.login-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 11, 0.55) 0%, rgba(5, 8, 11, 0.35) 50%, rgba(5, 8, 11, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

.login-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.login-card {
    width: 570px;
    max-width: 100%;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid #555;
    border-radius: 24px;
    overflow: hidden;
}

.login-logo {
    height: 275px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0) 60%), linear-gradient(180deg, rgba(20, 20, 20, 0.4) 0%, rgba(10, 10, 10, 0.4) 100%);
}

.login-logo img {
    max-width: 180px;
    max-height: 187px;
    width: auto;
    height: auto;
}

.login-divider {
    height: 3px;
    background: #FFC400;
    width: 100%;
}

.login-form {
    padding: 35px 35px 25px;
}

.login-alerts {
    margin-bottom: 20px;
}

.login-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.login-alert.error {
    background: rgba(255, 50, 50, 0.12);
    border: 1px solid rgba(255, 50, 50, 0.4);
    color: #ff8a8a;
}

.login-alert.success {
    background: rgba(50, 200, 100, 0.12);
    border: 1px solid rgba(50, 200, 100, 0.4);
    color: #8affb0;
}

.field-group {
    margin-bottom: 30px;
}

.login-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.login-label svg {
    color: var(--accent);
    flex-shrink: 0;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 63px;
    background: #000000;
    border: 2px solid #555;
    border-radius: 10px;
    color: #858585;
    font-size: 18px;
    padding: 0 20px;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
}

.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #000000 inset;
    -webkit-text-fill-color: #858585;
    transition: background-color 9999s ease-in-out 0s;
}

.input-wrap input::placeholder {
    color: var(--placeholder);
}

.input-wrap input:focus {
    border-color: var(--accent);
}

.input-wrap .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--placeholder);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.input-wrap .password-toggle:hover {
    color: var(--accent);
}

.login-button {
    width: 100%;
    height: 75px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #111111;
    font-size: 23px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    transition: all .2s ease;
}

.login-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.login-button svg {
    flex-shrink: 0;
}

.login-separator {
    height: 1px;
    background: #252525;
    width: 100%;
    margin-top: 23px;
}

.login-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 0 0;
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
}

.login-info svg {
    color: var(--accent);
    flex-shrink: 0;
}

.powered-by {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
}

.powered-by .powered-icon {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.powered-by .powered-icon img {
    height: 20px;
    width: auto;
    display: block;
}

.powered-by .powered-text {
    color: var(--text-secondary);
}

.powered-by .powered-brand {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 640px) {
    .login-card {
        width: calc(100% - 30px);
    }
    .login-form {
        padding: 25px 22px 20px;
    }
    .login-logo {
        height: 220px;
        padding: 40px;
    }
    .login-logo img {
        max-width: 127px;
        max-height: 132px;
    }
    .input-wrap input {
        height: 56px;
    }
    .login-button {
        height: 65px;
        font-size: 20px;
    }
    .login-label {
        font-size: 16px;
    }
}

/* Asegura que el numero de registro se vea en mayusculas */
.uppercase-input {
    text-transform: uppercase;
}
