/* Site.css - the basics the login page builds on: Inter fonts, loading spinner, grey button, text boxes, white card.
   Uses: /fonts/Inter/*.woff (wwwroot/fonts); if missing the browser uses the fallback fonts.
   Used by: Views/Login/Index.cshtml only; Login.css loads after it and overrides .login-container, .btn and input.login-input. */

/* Teach the browser the Inter fonts; swap = show a normal font until Inter loads. Four of these (SemiBold, Medium, Bold, Regular). */
@font-face {
    font-family: 'InterSemiBold';
    src: url('/fonts/Inter/Inter-SemiBold.woff') format('woff');
    font-style: normal;
    font-display: swap;
}

/* Helper class for the SemiBold font, with fallbacks. */
.InterSemiBoldFont {
    font-family: 'InterSemiBold', system-ui, 'Segoe UI', Arial, sans-serif;
}

@font-face {
    font-family: 'InterMedium';
    src: url('/fonts/Inter/Inter-Medium.woff') format('woff');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InterBold';
    src: url('/fonts/Inter/Inter-Bold.woff') format('woff');
    font-style: normal;
    font-display: swap;
}

.InterBoldFont {
    font-family: 'InterBold', system-ui, 'Segoe UI', Arial, sans-serif;
}

@font-face {
    font-family: 'InterRegular';
    src: url('/fonts/Inter/Inter-Regular.woff') format('woff');
    font-style: normal;
    font-display: swap;
}

/* Full height, no margin, no sideways scroll. */
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

/* Base size 14px; rem units scale from this. */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

/* Tablet and up: 16px. */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Links: blue, no underline, hand cursor. */
a {
    color: blue;
    text-decoration: none;
    cursor: pointer;
}

/* Removes the browser focus outline everywhere (hard for keyboard users; Login.css adds an orange border on the two login boxes). */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Centred text (same name as Bootstrap's class, which isn't fully loaded). */
.text-center {
    text-align: center;
}

/* Dark layer over the whole window while logging in; z-index 9999 = on top of everything. */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.78);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Card in the middle of the overlay. */
.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    padding: 32px 40px;
    background-color: #3b4252;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Spinner ring: fading orange gradient with the middle masked out, turning forever. */
.loading-spinner {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(59, 66, 82, 0) 0%, #f2711c 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
    animation: loading-spinner-rotate 0.9s linear infinite;
}

/* Spin: a full turn. */
@keyframes loading-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* "Loading..." text. */
.loading-title {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 12px;
    font-family: 'InterRegular', system-ui, 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
}

/* "Logging in..." text (Login.js can change it via #loadingOverlayText). */
.loading-subtitle {
    color: #e8a165;
    font-size: 11px;
    font-family: 'InterRegular', system-ui, 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
}

/* Grey button; Login.css overrides size and colour for Sign In. */
.btn {
    padding: 7px 12px;
    border: none;
    background: #67676a;
    color: white;
    border-radius: 5px;
    font-family: 'InterMedium', system-ui, 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    font-size: 12px !important;
    transition: all 0.1s;
}

/* Darker and bolder on hover. */
.btn:hover {
    background-color: #0d1a28;
    color: white;
    font-family: 'InterSemiBold', system-ui, 'Segoe UI', Arial, sans-serif;
}

/* All inputs: rounded, no default border. */
input {
    border-radius: 5px;
    border-style: none;
}

/* Text boxes only: light grey border, grey Inter font. */
input[type="text"] {
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    height: 30px;
    font-family: 'InterRegular', system-ui, 'Segoe UI', Arial, sans-serif;
    color: #67676a;
    font-size: 12px;
}

/* Full-width box with a little padding (padding stays inside the width). */
.form-control {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    font-size: 13px;
}

/* White rounded card with soft shadow; Login.css changes its width. */
.login-container {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 280px;
    max-width: 100%;
}

/* Wrapper div in the login view (id="content"). */
#content {
    flex: 1;
    box-sizing: border-box;
}

/* Small text sizes used in the login view. */
.fontSize10 {
    font-size: 10px;
}

.fontSize11 {
    font-size: 11px;
}
