﻿/* Sign-in page (T010102Login) */

:root {
    --brand: #F88E3D;
    --brand-dark: #D9661C;
    --text: #1F2933;
    --muted: #6B7280;
    --border: #D7DCE2;
    --bg: #F5F6F8;
}

html, body {
    height: 100%;
    margin: 0;
}

body.Login {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.Login form {
    height: 100%;
}

.LoginShell {
    display: flex;
    min-height: 100vh;
}

/* Left: brand panel - white-washed logo tiled diagonally over the orange gradient */
.LoginBrand {
    position: relative;
    flex: 1 1 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.LoginBrand::before {
    content: "";
    position: absolute;
    /* oversized so the rotated pattern still covers every corner */
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("../../Resources/LogoTile.png");
    background-repeat: repeat;
    background-size: 360px 200px;
    opacity: 0.18;
    transform: rotate(-45deg);
    pointer-events: none;
}
/* Right: sign-in card */
.LoginMain {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.LoginCard {
    width: 100%;
    max-width: 400px;
    padding: 40px 36px 32px 36px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08), 0 1px 3px rgba(17, 24, 39, 0.06);
    box-sizing: border-box;
}

.LoginLogo {
    display: block;
    max-width: 220px;
    height: auto;
    margin: 0 0 28px 0;
}

.LoginCard h2 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 600;
}

.LoginSubtitle {
    margin: 0 0 24px 0;
    color: var(--muted);
    font-size: 14px;
}

/* Error / info messages (T010001InfoPanel) */
.LoginMessages {
    margin-bottom: 8px;
    font-size: 13px;
}

.LoginMessages hr.Dots {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 8px 0 12px 0;
}

.LoginField {
    margin-bottom: 18px;
}

.LoginLabel {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

input.LoginInput {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input.LoginInput:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(248, 142, 61, 0.2);
}

input.LoginButton {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 1px;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

input.LoginButton:hover {
    background: var(--brand-dark);
}

input.LoginButton:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(248, 142, 61, 0.35);
}

.LoginForgot {
    margin-top: 14px;
    text-align: right;
}

a.LoginLink {
    font-size: 13px;
    color: var(--brand-dark);
    text-decoration: none;
}

a.LoginLink:hover {
    text-decoration: underline;
}

.LoginFooter {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #EEF0F3;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* Message pages (maintenance, error): centred text in the same card */
.LoginNotice {
    margin: 4px 0 8px 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

.LoginNotice .LoginNoticeLead {
    display: block;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
}

.LoginNotice .LoginNoticeText {
    display: block;
    color: var(--muted);
}

.LoginNotice .LoginNoticeError {
    display: block;
    padding: 12px 14px;
    color: #8B0000;
    background: #FDF1EF;
    border: 1px solid #F5D0C9;
    border-radius: 8px;
    text-align: left;
    word-break: break-word;
}

.LoginCard.LoginCardMessage h2 {
    text-align: center;
}

.LoginCard.LoginCardMessage .LoginLogo {
    margin-left: auto;
    margin-right: auto;
}
/* DevExpress labels default to Tahoma 9pt (.dxeBase); use the page font instead */
.Login .dxeBase {
    font-family: inherit;
}

.LoginCard.LoginCardMessage h2 {
    margin-bottom: 16px;
}
/* Narrow screens: hide the brand panel, keep the card centred */
@media (max-width: 900px) {
    .LoginBrand {
        display: none;
    }

    .LoginCard {
        padding: 32px 24px 24px 24px;
    }
}
