@font-face {
    font-family: 'Alexandria';
    src: url('../fonts/Alexandria-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

input, select, button, textarea { font-family: inherit; }

        .login-page * { box-sizing: border-box; }
        body.login-page {
            font-family: 'Alexandria', Tahoma, Arial, sans-serif;
            background-color: #1a6fc4;
            background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
            background-size: 40px 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .login-page .box {
            background-color: #ffffff;
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
            text-align: center;
            width: 340px;
        }
        .login-page .box img {
            width: 110px;
            margin-bottom: 15px;
        }
        .login-page .box h1 {
            color: #123a63;
            font-size: 19px;
            margin: 5px 0;
        }
        .login-page .box p.subtitle {
            color: #888;
            font-size: 13px;
            margin-bottom: 25px;
        }
        .login-page input {
            padding: 12px 14px;
            width: 100%;
            margin: 10px 0;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            text-align: center;
        }
        .login-page input:focus {
            outline: none;
            border-color: #f7941d;
        }
        .login-page button {
            padding: 12px 0;
            width: 100%;
            margin-top: 10px;
            background: linear-gradient(90deg, #f7941d, #ec4899);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
        }
        .login-page button:hover { opacity: 0.9; }
        .login-page .error {
            color: #d63031;
            font-size: 13px;
            margin-top: 10px;
        }
    

        .home-page * { box-sizing: border-box; }
        body.home-page {
            font-family: 'Alexandria', Tahoma, Arial, sans-serif;
            background-color: #1a6fc4;
            background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
            background-size: 40px 40px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
            margin: 0;
            padding: 40px 20px;
        }
        .home-page .box {
            background-color: #ffffff;
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
            text-align: center;
            width: 400px;
        }
        .home-page .box img { width: 90px; margin-bottom: 10px; }
        .home-page .box h1 { color: #123a63; font-size: 18px; margin: 5px 0 25px 0; }
        .home-page label {
            display: block;
            text-align: right;
            font-size: 13px;
            color: #555;
            margin: 15px 0 5px 0;
        }
        .home-page select, .home-page input {
            padding: 12px 14px;
            width: 100%;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            text-align: right;
            font-family: inherit;
        }
        .home-page select:focus, .home-page input:focus { outline: none; border-color: #f7941d; }
        .home-page button {
            padding: 12px 0;
            width: 100%;
            margin-top: 20px;
            background: linear-gradient(90deg, #f7941d, #ec4899);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
        }
        .home-page button:hover { opacity: 0.9; }
        .home-page button:disabled { opacity: 0.5; cursor: not-allowed; }
        .home-page .result-box {
            margin-top: 20px;
            padding: 15px;
            border-radius: 10px;
            font-size: 14px;
            text-align: right;
            display: none;
        }
        .home-page .result-found { background: #eafaf1; color: #1e7e42; border: 1px solid #b7e4c7; }
        .home-page .result-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }
        .home-page .result-success { background: #e8f0fe; color: #123a63; border: 1px solid #c3d9f7; }
        .home-page .result-success a { color: #1a6fc4; font-weight: bold; }
        .home-page .loading { font-size: 13px; color: #888; margin-top: 15px; display: none; }
        .home-page .logout-link {
            display: block;
            margin-top: 20px;
            font-size: 12px;
            color: #999;
            text-decoration: none;
        }
    
.box { max-width: 100%; }
input[type="hidden"] { display: none; }
.home-page .logout-link {
    width: auto;
    margin-inline: auto;
    padding: 4px;
    background: transparent;
    font-weight: normal;
}
body.login-page { min-height: 100vh; height: auto; padding: 24px 16px; }

.custom-select { position: relative; text-align: start; }
.home-page .select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #123a63;
    font-size: 14px;
    font-weight: 400;
    text-align: start;
    line-height: 1.6;
    transition: border-color 150ms, box-shadow 150ms;
}
.home-page .select-trigger:hover { opacity: 1; border-color: #b3c7dc; }
.home-page .select-trigger:focus-visible,
.home-page .select-trigger[aria-expanded="true"] {
    outline: none;
    border-color: #f7941d;
    box-shadow: 0 0 0 3px rgb(247 148 29 / 12%);
}
.select-chevron { flex-shrink: 0; color: #73859a; transition: transform 150ms; }
.select-trigger[aria-expanded="true"] .select-chevron { transform: rotate(180deg); }
.select-options {
    position: absolute;
    z-index: 10;
    inset-inline: 0;
    top: calc(100% + 8px);
    margin: 0;
    padding: 6px;
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgb(18 58 99 / 14%);
}
.select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 6px;
    color: #123a63;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}
.select-option[aria-selected="true"] { color: #1a6fc4; font-weight: 600; }
.select-option.is-active { background: #edf5fd; }
.select-check { flex-shrink: 0; visibility: hidden; }
.select-option[aria-selected="true"] .select-check { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
    .select-chevron, .home-page .select-trigger { transition: none; }
}
