/* Sign-in pages (login, signup, password reset, messages) — styled after oceaniaesports.gg */
.oes-auth {
    --oes-bg: #060623;
    --oes-panel: rgba(0, 17, 53, 0.82);
    --oes-blue: #1a4d84;
    --oes-blue-bright: #4264ed;
    --oes-cyan: #35bee0;
    --oes-text: #ffffff;
    --oes-muted: #a9b4d0;
    --oes-line: rgba(255, 255, 255, 0.14);
    --oes-cut: 22px;

    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--oes-text);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(66, 100, 237, 0.35), transparent 60%),
        linear-gradient(180deg, rgba(6, 6, 35, 0.55), rgba(6, 6, 35, 0.95)),
        url('/img/background.jpg') center / cover no-repeat,
        var(--oes-bg);
}

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

/* Angled-corner panel, like the main site's cards and buttons */
.oes-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 40px 40px 32px;
    text-align: center;
    background: var(--oes-panel);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    clip-path: polygon(var(--oes-cut) 0, 100% 0, 100% calc(100% - var(--oes-cut)), calc(100% - var(--oes-cut)) 100%, 0 100%, 0 var(--oes-cut));
    box-shadow: inset 0 0 0 1px var(--oes-line);
}

.oes-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--oes-cut);
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--oes-blue-bright), var(--oes-cyan));
}

.oes-logo {
    display: inline-block;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.oes-logo:hover {
    transform: scale(1.04);
}

.oes-logo img {
    display: block;
    width: 120px;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(66, 100, 237, 0.45));
}

.oes-title {
    margin: 8px 0 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--oes-text);
}

.oes-subtitle {
    margin: 0 0 28px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--oes-muted);
}

.oes-form {
    text-align: left;
}

.oes-field {
    margin-bottom: 18px;
}

.oes-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.oes-field label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--oes-text);
}

.oes-field input {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--oes-text);
    background: rgba(6, 6, 35, 0.75);
    border: 1px solid var(--oes-line);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oes-field input::placeholder {
    color: rgba(169, 180, 208, 0.55);
}

.oes-field input:focus {
    border-color: var(--oes-blue-bright);
    box-shadow: 0 0 0 3px rgba(66, 100, 237, 0.3);
}

.oes-link-small,
.oes-footer-text a {
    color: var(--oes-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

.oes-link-small {
    font-size: 13px;
}

.oes-link-small:hover,
.oes-footer-text a:hover {
    color: var(--oes-text);
}

.oes-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    margin-top: 26px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--oes-text);
    background: linear-gradient(90deg, var(--oes-blue), var(--oes-blue-bright));
    border: 0;
    cursor: pointer;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    transition: filter 0.2s ease, transform 0.1s ease;
}

.oes-btn:hover {
    filter: brightness(1.15);
}

.oes-btn:active {
    transform: translateY(1px);
}

.oes-btn:focus-visible {
    outline: 2px solid var(--oes-cyan);
    outline-offset: 3px;
}

.oes-btn.is-loading {
    cursor: wait;
    filter: saturate(0.7);
}

.oes-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: oes-spin 0.8s linear infinite;
}

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

.oes-divider {
    height: 1px;
    margin: 28px 0 20px;
    background: var(--oes-line);
}

.oes-footer-text {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--oes-muted);
}

.oes-footer-text a {
    margin-left: 6px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .oes-card {
        padding: 32px 22px 26px;
    }
    .oes-title {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oes-spinner { animation-duration: 2s; }
    .oes-logo, .oes-btn { transition: none; }
}

/* Let the card shrink on narrow screens */
.oes-auth > #formbox,
.oes-auth > #messagebox {
    width: 100%;
    max-width: 440px;
    min-width: 0;
}

/* ---------- Shared additions for signup / reset / message pages ---------- */

.oes-card--wide {
    max-width: 560px;
}

.oes-auth > #formbox.oes-wide,
.oes-auth > #messagebox.oes-wide {
    max-width: 560px;
}

.oes-section-label {
    margin: 26px 0 14px;
    padding: 0 0 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--oes-cyan);
    border-bottom: 1px solid var(--oes-line);
}

.oes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

@media (max-width: 520px) {
    .oes-row { grid-template-columns: 1fr; }
}

.oes-field select {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 40px 0 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--oes-text);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2335bee0' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat,
        rgba(6, 6, 35, 0.75);
    border: 1px solid var(--oes-line);
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oes-field select:focus {
    border-color: var(--oes-blue-bright);
    box-shadow: 0 0 0 3px rgba(66, 100, 237, 0.3);
}

.oes-field select option {
    color: #fff;
    background: var(--oes-bg);
}

.oes-field input[type="date"] {
    color-scheme: dark;
}

.oes-hint {
    margin: 6px 0 0;
    padding: 0;
    font-size: 12px;
    color: var(--oes-muted);
}

/* Checkbox rows */
.oes-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--oes-muted);
    cursor: pointer;
}

.oes-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    padding: 0;
    background: rgba(6, 6, 35, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.oes-check input[type="checkbox"]::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
}

.oes-check input[type="checkbox"]:checked {
    background: var(--oes-blue-bright);
    border-color: var(--oes-blue-bright);
}

.oes-check input[type="checkbox"]:checked::after {
    opacity: 1;
}

.oes-check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--oes-cyan);
    outline-offset: 2px;
}

.oes-check a {
    color: var(--oes-cyan);
    text-decoration: none;
}

.oes-check a:hover {
    color: var(--oes-text);
}

.oes-checks {
    margin-top: 24px;
}

/* Message page body text */
.oes-message {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--oes-text);
}

.oes-card .oes-btn.oes-btn--link {
    text-decoration: none;
    margin-top: 28px;
}

#agebox {
    width: 100%;
}
