@font-face {
    font-family: "Alan Sans";
    src:
        url("/assets/fonts/AlanSans-Medium.ttf") format("truetype"),
        url("/assets/fonts/AlanSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: "Alan Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    background-color: #f0f2f5;
    height: 100%;
}
.content {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.simple-container {
    padding: 10px;
    border-radius: 16px;
    text-align: center;
    max-width: 410px;
    min-width: 300px;
}
.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    min-width: 300px;
}
.container.wide, .simple-container.wide {
    width: 500px;
}
.container .status-code, .simple-container .status-code {
    color: #666;
    font-weight: bold;
    font-size: 32px;
    margin: 20px 0;
}
.container .error-text, .simple-container .error-text {
    margin-top: 10px;
    color: darkred;
    font-weight: bold;
    font-size: 16px;
}
.apps-label {
    font-style: italic;
    color: #666;
}
.apps-grid {
    margin: 5px auto 20px auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
    gap: 18px;
    justify-content: center;
}
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 16px;
    text-decoration: none;
    max-width: 250px;
    color: #727586;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.0));
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    outline: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    border-color: #727586;
}
.app-card:focus-visible {
    box-shadow: 0 0 0 3px grey, 0 10px 28px rgba(0,0,0,.35);
}
.app-card .icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.3));
}
.app-card .name { font-size: 1.05rem; font-weight: 700; letter-spacing: .2px; color: var(--primary-color); }
.app-card .url { font-size: .85rem; color: #a7b0c0; word-break: break-all; text-align: center; }
.logo {
    width: 200px;
    margin-bottom: 10px;
}
h1 {
    font-size: 24px;
    margin: 10px 0 20px 0;
    color: var(--primary-color);
    text-transform: uppercase;
}
p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}
span.email {
    font-size: 16px;
    font-weight: bold;
}
.scopes-list {
    text-align: left;
    margin-bottom: 20px;
}
.scopes-list ul {
    list-style-type: none;
    padding: 0;
}
.scopes-list li {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}
.scopes-list li::before {
    content: "✓";
    color: black;
    position: absolute;
    left: 0;
}
.form-group {
    margin-bottom: 15px;
}
.form-group-captcha {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    flex-direction: row;
    margin-bottom: 15px;
}
.form-group-captcha label {
    margin-bottom: 0;
}
.form-group-captcha input[type="number"] {
    width: 60px;
}
.login-btn-wrapper {
    margin-top: 40px;
}
.logout-btn {
    color: darkred;
    background: transparent;
    border-radius: unset;
    display: inline-block;
    padding: 0;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
    width: auto;
}
.hidden {
    display: none;
}
label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
}
input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
button:hover {
    opacity: 0.8;
}
@media (prefers-color-scheme: light) {
    :root { --bg: #f7f8fb; --card: #ffffff; --card-border: #e6e8ee; --text: #0b1220; --muted: #5b6577; }
    body { background: radial-gradient(1200px 800px at 50% -10%, #eaf0ff 0%, #f7f8fb 60%, #fbfcff 100%); }
    .app-card { background: #ffffff; }
    .app-card:hover { border-color: #c6d4ff; }
}
/*@media (max-width: 450px) {*/
/*    .apps-grid {*/
/*        grid-template-columns: 2fr; !* two card per row *!*/
/*    }*/
/*}*/