:root {
    /* Matches the app template: sidebar/topbar (#36404e), btn-primary (#188ae2), info accent (#3db9dc) */
    --navy-deep: #232a34;
    --navy-mid: #36404e;
    --blue-accent: #188ae2;
    --blue-accent-dark: #106bb3;
    --info-accent: #3db9dc;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at 15% 15%, #2c3a52 0%, transparent 45%),
                radial-gradient(circle at 85% 75%, #1f4f70 0%, transparent 50%),
                linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 55%, #263140 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 16px;
}

/* Decorative dot grids in the corners */
.dot-grid {
    position: absolute;
    width: 110px;
    height: 90px;
    background-image: radial-gradient(rgba(61, 185, 220, 0.4) 1.6px, transparent 1.6px);
    background-size: 16px 16px;
    z-index: 0;
}
.dot-grid.top-right { top: 40px; right: 40px; }
.dot-grid.bottom-left { bottom: 40px; left: 40px; }

/* Faint watermark icons */
.watermark-icon {
    position: absolute;
    opacity: 0.07;
    color: #ffffff;
    z-index: 0;
}
.watermark-icon.shield { top: 8%; left: 4%; width: 190px; height: 190px; }
.watermark-icon.clipboard { top: 18%; left: 12%; width: 90px; height: 90px; }

/* Faint car silhouette on the right */
.car-silhouette {
    position: absolute;
    right: -5%;
    bottom: -8%;
    width: 55%;
    max-width: 640px;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    padding: 40px 36px 32px;
    text-align: center;
}

.login-logo {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--navy-mid) 100%);
    box-shadow: 0 12px 24px rgba(24, 138, 226, 0.35);
}

.login-title {
    margin: 0 0 4px;
    font-size: 1.65rem;
    font-weight: 800;
    color: #101a35;
}

.login-subtitle {
    margin: 0 0 18px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--info-accent);
    text-transform: uppercase;
}

.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 14px;
}
.login-divider .line {
    flex: 1;
    height: 1px;
    background: #e3e7ef;
}
.login-divider svg {
    width: 20px;
    height: 20px;
    color: #9aa5b8;
    flex-shrink: 0;
}

.login-companies {
    margin: 0 0 26px;
    font-size: 0.95rem;
    color: #4b5468;
}

.login-alert {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fdecec;
    color: #b3261e;
    font-size: 0.85rem;
    text-align: left;
}

.login-field {
    text-align: left;
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #101a35;
    margin-bottom: 6px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrap .field-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #9aa5b8;
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: 10px;
    border: 1px solid #e0e4ec;
    background: #fbfcfe;
    font-size: 0.95rem;
    color: #101a35;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input-wrap input:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(24, 138, 226, 0.18);
}

.login-input-wrap .toggle-visibility {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9aa5b8;
    display: flex;
}
.login-input-wrap .toggle-visibility svg {
    width: 18px;
    height: 18px;
}

.login-submit {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 13px;
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--blue-accent-dark) 100%);
    box-shadow: 0 14px 28px rgba(24, 138, 226, 0.35);
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(24, 138, 226, 0.42);
}
.login-submit svg {
    width: 17px;
    height: 17px;
}

.login-forgot {
    display: block;
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--blue-accent);
    text-decoration: none;
}
.login-forgot:hover {
    text-decoration: underline;
}

.login-footer {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}
.login-footer .powered-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}
.login-footer .powered-row svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.9);
}
.login-footer .powered-row b {
    color: #ffffff;
    letter-spacing: 0.02em;
}
.login-footer .tagline {
    margin-top: 2px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
