:root {
    --vt-primary: #e31c22;
    --vt-primary-dark: #c4161b;
    --vt-text: #282f53;
    --vt-muted: #74829c;
    --vt-border: #e9edf4;
    --vt-danger: #e82646;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.vt-login-body {
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: var(--vt-text);
    background: #f0f0f5;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.vt-loader {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(227, 28, 34, .15);
    border-top-color: var(--vt-primary);
    border-radius: 50%;
    animation: vt-spin .8s linear infinite;
}

@keyframes vt-spin {
    to {
        transform: rotate(360deg);
    }
}

.vt-login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Soft dark wash — keeps photo visible and footer text readable (no brand-red tint) */
.vt-login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 24, 36, .45) 0%, rgba(20, 24, 36, .55) 100%);
}

.vt-login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.vt-login-logo {
    text-align: center;
    margin-bottom: 26px;
}

.vt-login-logo span {
    display: inline-block;
    padding: 12px 22px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.vt-login-logo img {
    display: block;
    max-height: 56px;
    max-width: 240px;
}

.vt-login-card {
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    padding: 34px 34px 30px;
}

.vt-login-title {
    margin: 0 0 4px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--vt-text);
}

.vt-login-subtitle {
    display: block;
    margin-bottom: 26px;
    text-align: center;
    color: var(--vt-muted);
    font-size: 13px;
}

.vt-form-group {
    margin-bottom: 18px;
}

.vt-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--vt-text);
}

.vt-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--vt-border);
    border-radius: 7px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.vt-input-group:focus-within {
    border-color: var(--vt-primary);
    box-shadow: 0 0 0 3px rgba(227, 28, 34, .1);
}

.vt-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    color: var(--vt-muted);
    font-size: 16px;
    border-right: 1px solid var(--vt-border);
}

.vt-input-group input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: var(--vt-text);
}

.vt-input-group input::placeholder {
    color: #a7b0c4;
}

.vt-input-group input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px #fff inset;
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--vt-danger);
}

.vt-form-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 24px;
}

.vt-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--vt-muted);
    font-size: 13px;
    user-select: none;
}

.vt-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--vt-primary);
    cursor: pointer;
}

.vt-btn-login {
    display: block;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 5px;
    background: var(--vt-primary);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(227, 28, 34, .3);
    transition: background-color .15s ease, box-shadow .15s ease;
}

.vt-btn-login:hover,
.vt-btn-login:focus {
    background: var(--vt-primary-dark);
    box-shadow: 0 6px 16px rgba(227, 28, 34, .4);
    outline: 0;
}

#recoverform {
    display: none;
}

.vt-login-footer {
    margin-top: 22px;
    text-align: center;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

@media (max-width: 480px) {
    .vt-login-card {
        padding: 26px 20px 24px;
    }
}
