:root {
    --oe-primary: #1976d2;
    --oe-primary-dark: #125ca7;
    --oe-primary-light: #39b7ef;
    --oe-background: #eef4f9;
    --oe-card: #ffffff;
    --oe-text: #1f2d3d;
    --oe-muted: #687b8f;
    --oe-border: #dce6ef;
    --oe-danger: #c62828;
    --oe-danger-bg: #fde8e8;
    --oe-success: #157347;
    --oe-success-bg: #dff7e8;
    --oe-warning: #8a5a00;
    --oe-warning-bg: #fff3cd;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    color: var(--oe-text);
    background: var(--oe-background);
}

button,
input {
    font: inherit;
}

.oe-auth-body {
    min-height: 100vh;
}

.oe-auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
    min-height: 100vh;
}

.oe-auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px;
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(69, 190, 240, 0.22),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #0d3b66 0%,
            #125b93 52%,
            #169bd5 100%
        );
    color: #ffffff;
}

.oe-auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 38px 38px;
    pointer-events: none;
}

.oe-auth-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 470px;
}

.oe-auth-logo {
    display: block;
    width: 285px;
    max-width: 88%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.oe-auth-brand-divider {
    width: 64px;
    height: 4px;
    margin: 4px 0 26px;
    border-radius: 99px;
    background: var(--oe-primary-light);
}


.oe-auth-brand-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 650;
}

.oe-auth-brand-note-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #63d1ff;
    box-shadow: 0 0 0 4px rgba(99, 209, 255, 0.13);
}

.oe-auth-brand h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.oe-auth-brand p {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, 0.83);
    font-size: 1.04rem;
    line-height: 1.7;
}

.oe-auth-brand-features {
    display: grid;
    gap: 13px;
    margin-top: 36px;
}

.oe-auth-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
}

.oe-auth-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    font-size: 0.78rem;
    font-weight: 800;
}

.oe-auth-brand-decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.oe-decoration-one {
    top: -160px;
    right: -170px;
    width: 430px;
    height: 430px;
}

.oe-decoration-two {
    bottom: -230px;
    left: -160px;
    width: 520px;
    height: 520px;
}

.oe-auth-form-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 46px 42px 28px;
    background:
        radial-gradient(
            circle at 75% 14%,
            rgba(25, 118, 210, 0.08),
            transparent 25%
        ),
        var(--oe-background);
}

.oe-auth-card {
    width: 100%;
    max-width: 480px;
    padding: 38px;
    border: 1px solid rgba(205, 219, 231, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 24px 60px rgba(31, 45, 61, 0.12),
        0 3px 10px rgba(31, 45, 61, 0.05);
}

.oe-auth-mobile-logo {
    display: none;
    margin-bottom: 26px;
}

.oe-auth-mobile-logo img {
    display: block;
    width: 190px;
    height: auto;
}

.oe-auth-card-header {
    margin-bottom: 28px;
}

.oe-auth-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--oe-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.oe-auth-card h2 {
    margin: 0 0 9px;
    color: var(--oe-text);
    font-size: 1.85rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.oe-auth-card-subtitle {
    margin: 0;
    color: var(--oe-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.oe-auth-user-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 24px;
    padding: 13px 15px;
    border: 1px solid var(--oe-border);
    border-radius: 13px;
    background: #f8fbfd;
}

.oe-auth-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            var(--oe-primary),
            var(--oe-primary-light)
        );
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
}

.oe-auth-user-summary strong,
.oe-auth-user-summary small {
    display: block;
}

.oe-auth-user-summary strong {
    margin-bottom: 2px;
    font-size: 0.94rem;
}

.oe-auth-user-summary small {
    color: var(--oe-muted);
    font-size: 0.8rem;
}

.oe-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.oe-alert ul {
    margin: 8px 0 0;
    padding-left: 19px;
}

.oe-alert-danger {
    border-color: rgba(198, 40, 40, 0.22);
    background: var(--oe-danger-bg);
    color: var(--oe-danger);
}

.oe-alert-success {
    border-color: rgba(21, 115, 71, 0.22);
    background: var(--oe-success-bg);
    color: var(--oe-success);
}

.oe-alert-warning {
    border-color: rgba(138, 90, 0, 0.2);
    background: var(--oe-warning-bg);
    color: var(--oe-warning);
}

.oe-form-group {
    margin-bottom: 19px;
}

.oe-form-label {
    display: block;
    margin-bottom: 7px;
    color: #29394a;
    font-size: 0.88rem;
    font-weight: 750;
}

.oe-input-wrap {
    position: relative;
}

.oe-form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--oe-border);
    border-radius: 11px;
    background: #ffffff;
    color: var(--oe-text);
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.oe-form-control:hover {
    border-color: #b9cbd9;
}

.oe-form-control:focus {
    border-color: var(--oe-primary);
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.12);
}

.oe-form-control.has-toggle {
    padding-right: 88px;
}

.oe-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    padding: 7px 9px;
    background: transparent;
    color: var(--oe-primary);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 750;
}

.oe-password-toggle:hover {
    background: rgba(25, 118, 210, 0.08);
}

.oe-form-help {
    display: block;
    margin-top: 7px;
    color: var(--oe-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.oe-password-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
    color: var(--oe-muted);
    font-size: 0.76rem;
}

.oe-password-rules li::before {
    content: "•";
    margin-right: 7px;
    color: var(--oe-primary);
    font-weight: 900;
}

.oe-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 3px 0 22px;
}

.oe-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--oe-muted);
    cursor: pointer;
    font-size: 0.86rem;
}

.oe-checkbox input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--oe-primary);
}

.oe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 11px 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 800;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.oe-btn:hover {
    transform: translateY(-1px);
}

.oe-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.oe-btn-primary {
    background:
        linear-gradient(
            90deg,
            var(--oe-primary-dark),
            var(--oe-primary),
            var(--oe-primary-light)
        );
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(25, 118, 210, 0.22);
}

.oe-btn-primary:hover {
    box-shadow: 0 13px 28px rgba(25, 118, 210, 0.3);
}

.oe-btn-secondary {
    border-color: var(--oe-border);
    background: #ffffff;
    color: #526679;
}

.oe-btn-secondary:hover {
    background: #f5f8fb;
}

.oe-auth-actions {
    display: grid;
    gap: 10px;
}

.oe-auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--oe-border);
    color: var(--oe-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.oe-auth-security-mark {
    flex: 0 0 auto;
    color: var(--oe-primary);
    font-weight: 900;
}

.oe-auth-footer {
    margin-top: 24px;
    color: #7c8d9e;
    font-size: 0.76rem;
    text-align: center;
}

.oe-auth-footer span {
    margin: 0 6px;
}

@media (max-width: 960px) {
    .oe-auth-shell {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 34px 18px;
    }

    .oe-auth-brand {
        display: none;
    }

    .oe-auth-form-side {
        width: 100%;
        padding: 0;
        background: transparent;
    }

    .oe-auth-mobile-logo {
        display: block;
    }
}

@media (max-width: 560px) {
    .oe-auth-shell {
        align-items: flex-start;
        padding: 24px 13px;
    }

    .oe-auth-mobile-logo {
        margin: 4px 0 20px;
    }

    .oe-auth-mobile-logo img {
        width: 170px;
    }

    .oe-auth-card {
        padding: 27px 21px;
        border-radius: 17px;
    }

    .oe-auth-card h2 {
        font-size: 1.55rem;
    }

    .oe-password-rules {
        grid-template-columns: 1fr;
    }

    .oe-auth-footer {
        margin-top: 18px;
    }
}
