:root {
    --wms-blue: #0879cb;
    --wms-deep-blue: #0a376d;
    --wms-text: #173b6c;
    --wms-muted: #627995;
    --wms-green: #62b844;
}

body.wms-login-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(156, 217, 255, .76), transparent 34%),
        radial-gradient(ellipse at 92% 50%, rgba(255, 255, 255, .92), transparent 38%),
        linear-gradient(115deg, #d9efff 0%, #f6fbff 49%, #eef8ff 100%);
    color: var(--wms-text);
}

.wms-login-page .custom-login {
    display: block;
    min-height: 100vh;
    overflow: hidden;
    background: transparent;
}

.wms-login-page .custom-login-inner {
    display: flex;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.wms-login-page .custom-wrapper {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 28px 4.5vw;
}

.wms-login-page .custom-row {
    width: 100%;
}

.wms-login-page .custom-row > .card {
    width: 100%;
    background: transparent;
}

.wms-login-page .card,
.wms-login-page .custom-wrapper .card .card-body {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
}

.wms-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 504px) minmax(0, .84fr);
    align-items: center;
    gap: clamp(30px, 5.2vw, 82px);
    width: 100%;
    min-height: calc(100vh - 56px);
    max-width: 1600px;
    margin: 0 auto;
}

.wms-login-brand {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-bottom: 22vh;
}

.wms-brand-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--wms-deep-blue);
}

.wms-drop-logo {
    width: clamp(84px, 8.3vw, 126px);
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 10px rgba(25, 102, 160, .13));
}

.wms-brand-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.wms-brand-name strong {
    font-size: clamp(54px, 5.5vw, 82px);
    font-weight: 800;
    letter-spacing: -4px;
}

.wms-brand-name span {
    margin-top: 8px;
    font-size: clamp(10px, .9vw, 13px);
    font-weight: 700;
    letter-spacing: 2.2px;
    white-space: nowrap;
}

.wms-brand-name small {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.wms-brand-name small::before,
.wms-brand-name small::after {
    height: 1px;
    flex: 1;
    content: "";
    background: #88bfe2;
}

.wms-brand-tagline {
    position: relative;
    z-index: 1;
    margin: 28px 0 0;
    color: var(--wms-deep-blue);
    font-size: clamp(13px, 1.1vw, 16px);
    font-style: italic;
    font-weight: 600;
    white-space: nowrap;
}

.wms-brand-tagline span {
    padding: 0 5px;
    color: var(--wms-blue);
}

.wms-water-scene {
    position: absolute;
    right: -5vw;
    bottom: -28px;
    left: -4.5vw;
    z-index: 0;
    width: calc(100% + 9.5vw);
    height: min(46vh, 390px);
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
}

.wms-login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    padding: 34px 44px 24px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 15px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 55px rgba(20, 75, 124, .18);
}

.wms-login-card::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 190px;
    height: 92px;
    background: linear-gradient(180deg, #086ab9 0 54%, #68bf45 55% 78%, transparent 79%);
    clip-path: polygon(100% 0, 100% 100%, 70% 0);
    content: "";
    pointer-events: none;
}

.wms-login-card > * {
    position: relative;
    z-index: 1;
}

.wms-card-drop {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
}

.wms-card-drop svg {
    display: block;
    width: 100%;
    height: 100%;
}

.wms-login-card h1 {
    margin: 0;
    color: var(--wms-deep-blue);
    font-size: clamp(26px, 2.1vw, 32px);
    font-weight: 750;
    letter-spacing: -.5px;
    text-align: center;
}

.wms-login-subtitle {
    max-width: 340px;
    margin: 8px auto 27px;
    color: var(--wms-muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.wms-login-page .alert {
    border-radius: 8px;
}

.wms-login-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.wms-field label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    color: var(--wms-deep-blue);
    font-size: 14px;
    font-weight: 700;
}

.wms-field label svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.5;
}

.wms-login-page .wms-field .form-control {
    height: 45px;
    padding: 0 14px;
    border: 1px solid #d4e3f2;
    border-radius: 10px;
    background: #f2f7fd;
    color: var(--wms-text);
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(15, 52, 94, .025);
}

.wms-login-page .wms-field .form-control::placeholder {
    color: #61758f;
    opacity: 1;
}

.wms-login-page .wms-field .form-control:focus {
    border-color: #67aee4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(8, 121, 203, .13);
}

.wms-field-error {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 12px;
}

.wms-forgot-password {
    margin-top: -7px;
    font-size: 13px;
}

.wms-login-page .wms-forgot-password a {
    color: #168be0;
    font-weight: 600;
    text-decoration: none;
}

.wms-login-page .wms-forgot-password a:hover {
    text-decoration: underline;
}

.wms-recaptcha {
    overflow-x: auto;
}

.wms-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 49px;
    margin-top: 1px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(105deg, #118fdb 0%, #0568b9 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 5px 12px rgba(6, 105, 186, .2);
    transition: filter .18s ease, transform .18s ease;
}

.wms-login-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.wms-login-submit svg {
    width: 19px;
    height: 19px;
}

.wms-card-footer {
    margin-top: 24px;
    padding-top: 19px;
    border-top: 1px solid #e7eef6;
    color: #7185a0;
    font-size: 13px;
    text-align: center;
}

.wms-login-features {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 42px);
    min-width: 0;
}

.wms-feature {
    display: flex;
    align-items: center;
    gap: 18px;
}

.wms-feature-icon {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
}

.wms-feature-icon svg {
    width: 29px;
    height: 29px;
    stroke-width: 2.3;
}

.wms-icon-blue { background: #55a9e5; }
.wms-icon-green { background: #62b84e; }
.wms-icon-cyan { background: #179de2; }

.wms-feature strong {
    display: block;
    margin-bottom: 5px;
    color: #0868b7;
    font-size: 15px;
    font-weight: 750;
}

.wms-feature p {
    max-width: 220px;
    margin: 0;
    color: #61758e;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .wms-login-page .custom-wrapper { padding-right: 3vw; padding-left: 3vw; }
    .wms-login-layout {
        grid-template-columns: minmax(240px, .8fr) minmax(390px, 504px);
        gap: clamp(24px, 4vw, 54px);
    }
    .wms-login-features { display: none; }
    .wms-water-scene { right: -3vw; left: -3vw; width: calc(100% + 6vw); }
}

@media (max-width: 760px) {
    .wms-login-page .custom-wrapper { padding: 20px 16px; }
    .wms-login-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        min-height: calc(100vh - 40px);
        max-width: 520px;
    }
    .wms-login-brand {
        align-self: auto;
        padding: 0;
    }
    .wms-brand-lockup { gap: 10px; }
    .wms-drop-logo { width: 48px; }
    .wms-brand-name strong { font-size: 36px; letter-spacing: -2px; }
    .wms-brand-name span { margin-top: 5px; font-size: 8px; letter-spacing: 1.2px; }
    .wms-brand-name small { display: none; }
    .wms-brand-tagline { margin-top: 8px; font-size: 11px; white-space: normal; }
    .wms-water-scene { display: none; }
    .wms-login-card { padding: 26px 22px 20px; }
    .wms-card-drop { width: 56px; height: 56px; margin-bottom: 8px; }
    .wms-login-subtitle { margin-bottom: 21px; }
}

@media (max-width: 380px) {
    .wms-login-card { padding-right: 17px; padding-left: 17px; }
    .wms-brand-tagline span { padding: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .wms-login-submit { transition: none; }
}
