/* AccusterWMS sign-in / password reset pages */

:root {
    --brand: #1a6dff;
    --ink: #0f2447;
    --muted: #5f6f8d;
    --line: #dde6f3;
}

* {
    box-sizing: border-box;
}

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

body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(900px 500px at 12% 8%, rgba(56, 182, 255, .16), transparent 60%),
        radial-gradient(800px 520px at 92% 92%, rgba(26, 109, 255, .13), transparent 60%),
        linear-gradient(180deg, #f6f9ff 0%, #eef3fb 100%);
}

.auth-card {
    width: 100%;
    max-width: 456px;
    padding: 52px 42px 44px;
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(30, 70, 140, .10), 0 2px 6px rgba(30, 70, 140, .04);
}

/* wordmark */
.auth-logo {
    text-align: center;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    user-select: none;
}

.auth-logo-a {
    color: #0a2557;
}

.auth-logo-b {
    background: linear-gradient(90deg, #1456ff 0%, #3db8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1a6dff;
}

.auth-sub {
    margin: 18px 0 34px;
    text-align: center;
    color: var(--muted);
    font-size: 19px;
}

/* alerts */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -8px 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.auth-alert .material-icons {
    font-size: 20px;
    margin-top: 1px;
}

.auth-alert.error {
    background: #fdecec;
    border: 1px solid #f6c7c7;
    color: #a12626;
}

.auth-alert.success {
    background: #e7f8ee;
    border: 1px solid #bfe9cf;
    color: #12703a;
}

/* fields */
.auth-field {
    margin-bottom: 22px;
}

.auth-field > label {
    display: block;
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 14px 0 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-input:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(26, 109, 255, .13);
}

.auth-input.has-error {
    border-color: #e5484d;
}

.auth-ico {
    flex: none;
    width: 40px;
    height: 40px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef2f8;
    color: #46597d;
}

.auth-ico .material-icons {
    font-size: 22px;
}

.auth-input input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.auth-input input::placeholder {
    color: #8a97ad;
}

.auth-eye {
    flex: none;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #46597d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-eye:hover {
    background: #eef2f8;
}

.auth-field-error {
    margin-top: 7px;
    color: #c43232;
    font-size: 13px;
}

/* remember + forgot */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 28px;
    font-size: 15px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-check .box {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1.5px solid #c3cfe3;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease;
}

.auth-check .box::after {
    content: '';
    width: 6px;
    height: 12px;
    margin-top: -2px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .12s ease;
}

.auth-check input:checked + .box {
    background: var(--brand);
    border-color: var(--brand);
}

.auth-check input:checked + .box::after {
    transform: rotate(45deg) scale(1);
}

.auth-check input:focus-visible + .box {
    box-shadow: 0 0 0 4px rgba(26, 109, 255, .2);
}

.auth-link {
    color: var(--brand);
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* primary button */
.auth-btn {
    width: 100%;
    height: 60px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(90deg, #0b5cff 0%, #1fa2ff 100%);
    color: #fff;
    font: inherit;
    font-size: 19px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(11, 92, 255, .28);
    transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}

.auth-btn:hover {
    filter: brightness(1.06);
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 109, 255, .3), 0 12px 26px rgba(11, 92, 255, .28);
}

.auth-btn[disabled] {
    filter: grayscale(.2) brightness(.95);
    cursor: progress;
}

.auth-btn .material-icons {
    font-size: 24px;
}

.auth-back {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 38px 22px 32px;
        border-radius: 16px;
    }

    .auth-logo {
        font-size: 38px;
    }

    .auth-sub {
        font-size: 17px;
        margin-bottom: 26px;
    }
}

