:root {
    --login-orange: #f58220;
    --login-orange-dark: #d96b12;
    --login-cyan: #00abc2;
    --login-cyan-dark: #007f91;
    --login-text: #14252b;
    --login-muted: #62727a;
    --login-border: #d8edf1;
    --login-surface: #ffffff;
    --login-soft: #f4fbfc;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--login-text);
    background:
        radial-gradient(circle at 16% 12%, rgba(0, 171, 194, 0.18), transparent 26rem),
        radial-gradient(circle at 88% 82%, rgba(245, 130, 32, 0.16), transparent 24rem),
        var(--login-soft);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.15fr) minmax(380px, 0.85fr);
}

.brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 127, 145, 0.96), rgba(0, 171, 194, 0.88) 52%, rgba(245, 130, 32, 0.9)),
        url("/assets/images/login-img.png") center/cover no-repeat;
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 34px),
        linear-gradient(30deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 42px);
    opacity: 0.45;
}

.brand-content {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    color: white;
    text-align: center;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-bottom: 34px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(20, 37, 43, 0.22);
}

.logo-wrap img {
    width: min(250px, 62vw);
    height: auto;
    display: block;
}

.brand-content h1 {
    margin: 0 0 14px;
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.05;
}

.brand-content p {
    max-width: 460px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.96;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
    background: var(--login-surface);
}

.form-wrapper {
    width: min(430px, 100%);
}

.mobile-logo {
    display: none;
    width: 168px;
    margin: 0 auto 22px;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h2 {
    margin: 0 0 8px;
    color: var(--login-orange);
    font-size: 2rem;
    font-weight: 800;
}

.form-header p {
    margin: 0;
    color: var(--login-muted);
}

.login-alert {
    border: 0;
    border-left: 4px solid #dc2626;
    border-radius: 14px;
    color: #991b1b;
    background: #fef2f2;
}

.validation-summary-valid {
    display: none;
}

.input-icon {
    position: relative;
    margin-bottom: 18px;
}

.input-icon > i {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 18px;
    color: var(--login-muted);
    transform: translateY(-50%);
}

.form-floating > .form-control {
    height: 60px;
    padding-left: 3.25rem;
    border: 2px solid var(--login-border);
    border-radius: 16px;
    background: #f8fafc;
}

.form-floating > label {
    padding-left: 3.25rem;
    color: var(--login-muted);
}

.form-floating > .form-control:focus {
    border-color: var(--login-orange);
    box-shadow: 0 0 0 4px rgba(242, 122, 26, 0.12);
    background: white;
}

.form-floating:focus-within + i,
.input-icon:focus-within > i {
    color: var(--login-orange);
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0 22px;
}

.btn-login {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    color: white;
    font-size: 1.08rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--login-cyan), var(--login-cyan-dark));
    box-shadow: 0 14px 28px rgba(0, 171, 194, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-login i {
    color: var(--login-orange);
    filter: drop-shadow(0 1px 0 rgba(20, 37, 43, 0.16));
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--login-cyan-dark), #006a78);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(0, 171, 194, 0.34);
}

.link-button {
    border: 0;
    padding: 0;
    color: var(--login-cyan-dark);
    background: transparent;
    font-weight: 700;
    text-decoration: none;
}

.link-button:hover {
    color: var(--login-orange-dark);
}

.aux-panel {
    display: none;
}

.aux-panel.active {
    display: block;
}

.login-panel.hide {
    display: none;
}

.aux-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--login-cyan), var(--login-orange));
    font-size: 2rem;
}

.login-footer {
    margin-top: 34px;
    color: var(--login-muted);
    font-size: 0.86rem;
    text-align: center;
}

@media (max-width: 992px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: 310px;
        padding: 36px 20px;
    }

    .brand-content h1 {
        font-size: 2.1rem;
    }

    .logo-wrap {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .form-panel {
        padding: 34px 20px 44px;
    }
}
