@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #f5f7fa;
    color: #1f2937;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-footer-inner,
.MuiContainer-root.MuiContainer-maxWidthLg.mui-ow8034,
.site-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.MuiBox-root.mui-1u9jaw6 {
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.MuiBox-root.mui-1jzjbfr {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.MuiBox-root.mui-i9gxme {
    flex: 1;
}

.mui-1cj0r4x,
.mui-43tcgm {
    color: #646464;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
}

.mui-1cj0r4x:hover,
.mui-2jxcg1:hover,
.footer-column a:hover,
.footer-inline-link:hover,
.partner-link:hover,
.social-links a:hover {
    color: #005da6;
}

.mui-43tcgm,
.mui-1ib2vvx {
    display: flex;
    align-items: center;
    gap: 6px;
}

.MuiBox-root.mui-998u5m {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.mui-2jxcg1 {
    color: #00407a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.MuiBox-root.mui-d0uhtl {
    display: flex;
    align-items: center;
}

.page-main {
    min-height: auto;
}

.hero-section {
    position: relative;
    background: url('/assets/images/bg_login.jpg') center center / cover no-repeat;
    min-height: 680px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(7, 28, 48, 0.78) 0%, rgba(8, 65, 110, 0.66) 42%, rgba(22, 92, 136, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 20px;
    display: grid;
    grid-template-columns: 1.15fr minmax(360px, 440px);
    gap: 40px;
    align-items: center;
}

.hero-copy {
    color: #ffffff;
    max-width: 580px;
}

.hero-overline {
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #dbeafe;
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    font-weight: 700;
}

.hero-subtitle {
    margin-top: 18px;
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.auth-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(2, 17, 33, 0.26);
    padding: 30px;
}

.panel-title,
.register-title {
    margin: 0 0 18px;
    color: #0b3b66;
}

.register-title {
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.required-note {
    color: #64748b;
}

.login-error {
    color: #c62828;
}

.register-error {
    color: #c62828;
}

.login-validation-error {
    color: #c62828;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.register-success {
    color: #2e7d32;
}

.forgot-link,
.submit-button,
.register-button {
    text-transform: none;
}

.submit-button,
.register-button {
    font-weight: 700;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.text-xs {
    font-size: 0.75rem;
}

.text-gray-500 {
    color: #6b7280;
}

.-top-3 {
    top: -0.75rem;
}

.left-2 {
    left: 0.5rem;
}

.bg-white {
    background-color: #ffffff;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.border-2 {
    border-width: 2px;
    border-style: solid;
    border-color: rgba(0, 0, 0, .23);
    border-radius: 4px;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.w-full {
    width: 100%;
}

.pl-2 {
    padding-left: 0.5rem;
}

.form-control {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: inherit;
}

.mud-input-label-shrink {
    transform: translate(20px, -6px) scale(.75);
    background: #fff;
    padding: 0 4px;
    z-index: 1;
}

.input-field .mud-input-label,
.input-field .mud-input-outlined-border legend {
    visibility: visible;
}

.input-field:has(.mud-input-slot:not(:placeholder-shown)) .mud-input-label,
.input-field:has(.mud-input-slot:not(:placeholder-shown)) .mud-input-outlined-border legend,
.input-field:has(.mud-input-slot:-webkit-autofill) .mud-input-label,
.input-field:has(.mud-input-slot:-webkit-autofill) .mud-input-outlined-border legend,
.input-field:has(select.mud-input-slot:not([value=""])) .mud-input-label,
.input-field:has(select.mud-input-slot:not([value=""])) .mud-input-outlined-border legend {
    visibility: hidden;
}

select.mud-input-slot:not([value=""]) + .mud-input-outlined-border legend,
select.mud-input-slot:not([value=""]) ~ .mud-input-label {
    /* Styles are already handled by .mud-input-label-shrink and JS or standard Blazor behavior usually, 
       but we want to mimic the :placeholder-shown behavior for select */
}

.mud-input-outlined-border {
    position: absolute;
    inset: 0;
    padding: 0 9px;
    border: 1px solid rgba(0, 0, 0, .23);
    border-radius: inherit;
    pointer-events: none;
}

.auth-divider {
    margin: 12px 0 6px;
}

.register-text {
    margin-bottom: 14px;
    color: #475569;
}

.register-form {
    margin-top: 16px;
}

.register-page-content {
    justify-content: center;
}

.signin-link {
    display: block;
    text-align: center;
}

.mui-my9yfq {
    background: #fff;
    padding: 20px 0 28px;
}

.mui-106wuqp {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.mui-1xrecu,
.mui-jmrinx {
    border: 0;
    border-top: 1px solid #dbe2ea;
    margin: 0;
}

.mui-16oo07u {
    margin: 16px 0 14px;
    color: #3a3a3a;
    text-align: left;
}

.mui-1v9nb7k {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.mui-j8loj1 img {
    display: block;
    height: 50px;
    object-fit: contain;
}

.mui-jmrinx {
    margin-bottom: 22px;
}

.mui-177xvbk {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.mui-1rk150p,
.mui-1rk150p p {
    color: #333;
    line-height: 1.55;
    margin: 0 0 10px;
}

.mui-1jsymwn {
    color: #00407a;
}

.mui-1pngknd {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 18px;
}

.mui-13rdfdi,
.mui-evwyrv,
.mui-k95k12 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mui-105n2qh {
    color: #333;
}

.mui-isryhg {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.mui-44tbav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mui-44tbav svg {
    display: block;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-copy {
        max-width: none;
    }

    .auth-card {
        max-width: 520px;
    }

    .mui-177xvbk {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .logo {
        height: 44px;
    }

    .service-bar-inner {
        justify-content: flex-start;
    }

    .service-spacer {
        display: none;
    }

    .service-links {
        gap: 10px;
        font-size: 0.82rem;
        justify-content: flex-start;
    }

    .contact-links {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero-section {
        min-height: 0;
    }

    .hero-content {
        padding: 32px 16px;
    }

    .auth-card {
        padding: 22px 18px;
    }

    .meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mui-1pngknd {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}