/* site.css
   Cleaned global styles for the MFA portal.
   Comments are in English as requested. */

/* Color tokens */
:root {
    --bg-edge: #1a1a1a; /* very dark grey edges #1a1a1a*/
    --bg-center: #333333; /* dark grey center #333333*/
    --panel: #1e1e1e; /* panel background (darker than center) */
    --panel-body: #f2f2f2; /* light grey for the form row */
    --orange: #F2A900;
    --white: #ffffff;
    --muted: #9a9a9a;
    /* Vertical offset for the panel */
    --panel-offset: 12vh;
}

/* Base layout */
html {
    background-color: var(--bg-edge);
    height: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    min-height: 100vh;
    height: 100%;
    font-family: Arial, sans-serif;
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* radial gradient: center lighter, edges darker--radial-gradient(circle at center, rgb(126,121,121,1) 0%, rgb(81,79,79,1) 55%, rgb(65,62,62,1) 100%) */
    background-color: var(--bg-edge);
    background-image: radial-gradient(circle at center, rgb(126, 126, 126) 0%, rgb(83, 83, 83) 55%, rgb(60, 60, 60) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* Wrapper that positions the content near the top */
.page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 24px;
    box-sizing: border-box;
    padding-top: var(--panel-offset);
}

    /* Ensure the inner container centers its children exactly */
    .page-wrap > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

/* Site title block above the panel */
.site-title {
    text-align: center;
    margin-bottom: 14px;

    width: 100%;
    max-width: 420px; /* match panel width so centering aligns perfectly */
}

.brand {
    margin: 0;
    font-size: 20pt;
    color: var(--white);
    font-weight: 100;
}

.separator {
    width: 360px;
    height: 1px;
    background: var(--white);
    opacity: 0.15;
    margin: 15px auto;
}

.subtitle {
    margin: 0;
    color: var(--white);
    font-family: Gotham;
    opacity: 0.9;
    font-size: 11pt;
}

/* Central panel (single-column) */
.panel {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    display: block;
}

/* Rows inside the panel */
.panel-row {
    padding: 0;
}

/* Header row: thin orange band with white text */
.panel-header {
    background: var(--orange);
    color: var(--white);
    font-weight: 600;
    padding: 16px 16px;
    font-size: 1.1875rem;
    line-height: 1.2;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Body row: light grey background containing the form */
.panel-body {
    background: var(--panel-body);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    padding: 18px 16px;
    color: #000;
}

/* Error row style */
.panel-error {
    background: #ffffff;
    color: #ff475a;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    padding: 10px;
    border-left: 4px solid #ff475a;
    font-size: 0.8rem;
    margin-bottom: 8px;
    border-radius: 4px;
}

/* Form layout inside the panel body */
.panel-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Label above the input, black text */
.form-label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}
.form-resend {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}
.resend-link {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    text-align: left;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Input field */
.form-input {
    width: 100%;
    padding: 15px 12px;
    border-radius: 2px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.8rem !important;
    border: 1px solid #cfcfcf;
    background: #ffffff;
    color: #000000;
    box-sizing: border-box;
    font-size: 1rem;
}

    /* Placeholder color */
    .form-input::placeholder {
        color: #9a9a9a;
    }

/* Actions container for the button (left aligned by default) */
.form-actions {
    display: block;
    text-align: left;
    width: auto;
}

/* Submit button: smaller and left aligned by default */
.btn-submit {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 4px;
    border: none;
    background: #000000;
    color: #ffffff;
    font-weight: 200;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    width: 140px; /*ensure it does not expand to full width */
    box-sizing: border-box;
}

    /* Hover state for button */
    .btn-submit:hover {
        filter: brightness(1.05);
    }

    /* Focus styles for accessibility */
    .form-input:focus,
    .btn-submit:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
    }

/* Responsive title size */
@media (min-width: 768px) {
    .brand {
        font-size: 2.4rem;
    }
}
