/* Standalone auth pages (Login / AdminLogin) - local wwwroot; no Tailwind CDN */

@font-face {
    font-family: 'Dubai';
    src: url('../fonts/Dubai-Light.woff2') format('woff2'),
         url('../fonts/Dubai-Light.woff') format('woff'),
         url('../fonts/Dubai-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dubai';
    src: url('../fonts/Dubai-Regular.woff2') format('woff2'),
         url('../fonts/Dubai-Regular.woff') format('woff'),
         url('../fonts/Dubai-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dubai';
    src: url('../fonts/Dubai-Medium.woff2') format('woff2'),
         url('../fonts/Dubai-Medium.woff') format('woff'),
         url('../fonts/Dubai-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dubai';
    src: url('../fonts/Dubai-Bold.woff2') format('woff2'),
         url('../fonts/Dubai-Bold.woff') format('woff'),
         url('../fonts/Dubai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.font-DubaiLight { font-family: 'Dubai', sans-serif; font-weight: 300; }
.font-DubaiRegular { font-family: 'Dubai', sans-serif; font-weight: normal; }
.font-DubaiMedium { font-family: 'Dubai', sans-serif; font-weight: 500; }
.font-DubaiBold { font-family: 'Dubai', sans-serif; font-weight: 700; }

.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Dubai', sans-serif;
    font-weight: normal;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-body--admin { background: #f4f6f8; }
.auth-body--public { background: #fbf2df; }

@media (min-width: 1024px) {
    .auth-shell--map {
        background-image: url('../images/dubai-map2.svg');
        background-size: 60%;
        background-repeat: no-repeat;
        background-position: bottom center;
    }
}

.auth-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-columns {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1400px;
}

@media (min-width: 1024px) {
    .auth-columns { flex-direction: row; }
}

.auth-welcome {
    flex: 1;
    display: flex;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .auth-welcome { margin: 4rem 0; }
}

@media (min-width: 1024px) {
    .auth-welcome { margin: 6rem 0; }
}

.auth-welcome-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.auth-welcome-heading-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

@media (min-width: 1024px) {
    .auth-welcome-heading-wrap {
        display: block;
        text-align: right;
    }
}

.auth-logo-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    width: fit-content;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .auth-logo-link { margin-bottom: 1rem; }
}

@media (min-width: 1280px) {
    .auth-logo-link { margin-bottom: 1.25rem; }
}

.auth-logo {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

.auth-title {
    font-family: 'Dubai', sans-serif;
    font-weight: 700;
    display: inline-block;
    padding-top: 0;
    line-height: 1.2;
    font-size: 1.9rem;
    color: #172445;
}

.auth-body--public .auth-title { color: #000; }

@media (min-width: 768px) {
    .auth-title { font-size: 2.8rem; }
}

@media (min-width: 992px) {
    .auth-title { font-size: 3rem; }
}

@media (min-width: 1200px) {
    .auth-title { font-size: 3.75rem; }
}

@media (min-width: 1280px) {
    .auth-title { padding-top: 1.5rem; }
}

.auth-title-accent {
    color: #977124;
    font-weight: 700;
}

.auth-card-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

@media (min-width: 1024px) {
    .auth-card-wrap {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

.auth-card {
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    min-width: 300px;
    width: 100%;
    padding: 20px;
}

.auth-card--admin { border-top: 8px solid #172445; }

@media (min-width: 640px) {
    .auth-card { width: 450px; padding: 30px 40px; }
}

@media (min-width: 768px) {
    .auth-card { width: 520px; padding: 40px 60px; }
}

@media (min-width: 1024px) {
    .auth-card { width: 540px; padding: 40px 60px; }
}

@media (min-width: 1280px) {
    .auth-card { width: 640px; padding: 50px 100px; }
}

.auth-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-card-icon svg {
    width: 4rem;
    height: 4rem;
    color: #172445;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #172445;
    margin: 0 0 0.5rem;
}

.auth-body--public .auth-card-title {
    color: #000;
    text-align: right;
}

.auth-card-subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(22, 22, 22, 0.4);
    text-align: center;
    margin: 0 0 2rem;
}

.auth-body--public .auth-card-subtitle { text-align: right; }

@media (min-width: 640px) {
    .auth-card-subtitle { margin-bottom: 1rem; }
}

@media (min-width: 768px) {
    .auth-card-subtitle { margin-bottom: 2rem; }
}

.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.auth-body--public .auth-alert {
    background: #fee2e2;
    border-color: #f87171;
}

.auth-validation-summary {
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.uae-pass-btn,
.auth-btn-uae-disabled {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid #172445;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.uae-pass-btn {
    background: #fff;
    color: #172445;
    cursor: pointer;
}

.uae-pass-btn:hover { background: #f8f9fa; }

.auth-btn-uae-disabled {
    background: #f5f5f5;
    border-color: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.uae-pass-btn img,
.auth-btn-uae-disabled img {
    height: 2rem;
    width: auto;
}

.auth-uae-soon {
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-field {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .auth-field { margin-top: 1rem; margin-bottom: 1rem; }
}

@media (min-width: 1024px) {
    .auth-field--spaced { margin-top: 2rem; margin-bottom: 2rem; }
}

.auth-field--password {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.auth-input {
    font-family: 'Dubai', sans-serif;
    font-weight: 500;
    width: 100%;
    height: 3.5rem;
    border-radius: 20px;
    outline: none;
    border: 1px solid transparent;
    box-sizing: border-box;
    font-size: 1rem;
}

.auth-body--admin .auth-input {
    padding-inline-end: 3rem;
    padding-inline-start: 1.5rem;
    background: #f4f6f8;
    color: #000;
}

.auth-body--admin .auth-input:focus {
    background: #fff;
    border-color: #172445;
}

.auth-body--public .auth-input {
    padding-inline-end: 3rem;
    padding-inline-start: 1.5rem;
    background: rgba(22, 22, 22, 0.06);
    color: #000;
}

.auth-body--public .auth-input:focus {
    background: #fff;
    border-color: #977124;
}

.auth-label {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: #6b7280;
    font-size: 16px;
    pointer-events: none;
    transition: top 0.15s ease, transform 0.15s ease, color 0.15s ease, background-color 0.15s ease;
    padding: 0 4px;
    background: transparent;
}

.auth-field:focus-within .auth-label,
.auth-input:not(:placeholder-shown) + .auth-label {
    top: -0.5rem;
    transform: none;
    font-size: 16px;
    background: #fff;
}

.auth-body--admin .auth-field:focus-within .auth-label,
.auth-body--admin .auth-input:not(:placeholder-shown) + .auth-label {
    color: #172445;
}

.auth-body--public .auth-field:focus-within .auth-label,
.auth-body--public .auth-input:not(:placeholder-shown) + .auth-label {
    color: #977124;
}

.auth-field-icon-end svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.auth-field-icon-end {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.auth-toggle-password {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    border-radius: 9999px;
    cursor: pointer;
    z-index: 2;
}

.auth-toggle-password:hover { background: #e5e7eb; }

.auth-toggle-password svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
}

.auth-field-error {
    color: #ef4444;
    font-size: 0.75rem;
    position: absolute;
    bottom: -1.25rem;
    right: 0.5rem;
    font-weight: 500;
}

.auth-btn-submit {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 2rem auto 0;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.75;
    border: 1px solid #172445;
    background: #172445;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.auth-btn-submit:hover {
    background: #0c142b;
    border-color: #0c142b;
}

.auth-btn-submit--public {
    border-color: #0a2240;
    background: #0a2240;
}

.auth-btn-submit--public:hover {
    background: #13325a;
    border-color: #13325a;
}

.auth-link-row {
    text-align: right;
    margin-bottom: 1rem;
}

.auth-link {
    color: #977124;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
}

.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 16px;
    font-weight: 500;
    color: rgba(22, 22, 22, 0.4);
}

.auth-footer-text a {
    color: #977124;
    text-decoration: underline;
}
�