* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

:root {
    --primary-red: #8b0000;
    --secondary-red: #c1121f;
    --light-text: #333333;
    --muted-text: #777777;
    --white-soft: rgba(255,255,255,0.12);
    --white-border: rgba(255,255,255,0.15);
}

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

body {
    min-height: 100vh;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5a0000, #8b0000, #c1121f);
    overflow-x: hidden;
}

.page-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
}

.page-top-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.top-btn {
    border: none;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.top-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.26);
}

.login-wrapper {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.22);
    align-items: stretch;
}

.left-panel {
    padding: 28px 28px 24px;
    color: #fff;
    background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    font-size: 13px;
    margin-bottom: 14px;
    width: fit-content;
}

.welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.welcome-copy {
    flex: 1;
    min-width: 0;
}

.shop-logo-wrap {
    flex-shrink: 0;
}

.shop-logo {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.10);
    padding: 6px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.left-panel h1 {
    font-size: 1.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
}

.left-panel p {
    font-size: 14px;
    line-height: 1.65;
    color: #f4dede;
    margin-bottom: 10px;
    max-width: 470px;
}

.shop-info-card {
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 1px solid var(--white-border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
}

.shop-name-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
}

.shop-meta-text {
    font-size: 13px;
    color: #ffeaea;
    line-height: 1.7;
    margin-bottom: 4px;
    word-break: break-word;
}

.shop-meta-text:last-child {
    margin-bottom: 0;
}

.shop-meta-text strong {
    color: #ffffff;
    font-weight: 600;
}

.smb-highlight {
    color: #ffffff;
    font-weight: 700;
}

.expiry-card {
    margin-top: 4px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 1px solid var(--white-border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
}

.expiry-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.expiry-box {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
}

.expiry-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f8dede;
    margin-bottom: 4px;
}

.expiry-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.expiry-note {
    margin-top: 10px;
    font-size: 12px;
    color: #ffeaea;
    line-height: 1.6;
}

.right-panel {
    background: #ffffff;
    padding: 26px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin: 0 auto 12px;
    box-shadow: 0 10px 24px rgba(139, 0, 0, 0.26);
    animation: floatShield 3s ease-in-out infinite, glowPulse 2.2s ease-in-out infinite;
    position: relative;
}

.icon-circle::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(193, 18, 31, 0.18);
    animation: rippleRing 2.4s linear infinite;
}

@keyframes floatShield {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.03);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 10px 24px rgba(139, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 14px 32px rgba(193, 18, 31, 0.40);
    }
}

@keyframes rippleRing {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.login-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--muted-text);
    margin-bottom: 18px;
    font-size: 14px;
}

.form-label {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 6px;
    font-size: 14px;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
}

.input-group-text {
    background: #fff;
    border-right: none;
    color: var(--primary-red);
    min-width: 46px;
    justify-content: center;
}

.form-control {
    border-left: none;
    padding: 11px 12px;
    box-shadow: none !important;
    font-size: 14px;
}

.form-control:focus {
    border-color: #ced4da;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.18rem rgba(139, 0, 0, 0.12);
}

.toggle-password-btn {
    border-left: none;
    font-size: 14px;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border: none;
    color: #fff;
    padding: 11px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.16);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(139, 0, 0, 0.24);
}

.small-text {
    color: var(--muted-text);
    font-size: 13px;
}

.alert {
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 14px;
    border-radius: 12px;
}

.login-side-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 0, 0, 0.10);
}

.login-side-note p {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted-text);
    margin-bottom: 8px;
    max-width: 100%;
}

.login-side-note p:last-child {
    margin-bottom: 0;
}

body.dark-mode {
    background: linear-gradient(135deg, #0b0b0b, #151515, #1f1f1f);
}

body.dark-mode .login-wrapper {
    background: rgba(20, 20, 20, 0.74);
}

body.dark-mode .left-panel {
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

body.dark-mode .left-panel p,
body.dark-mode .shop-meta-text {
    color: #d9d9d9;
}

body.dark-mode .expiry-card,
body.dark-mode .expiry-box,
body.dark-mode .shop-info-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

body.dark-mode .right-panel {
    background: #121212;
}

body.dark-mode .login-title,
body.dark-mode .form-label {
    color: #ffffff;
}

body.dark-mode .login-subtitle,
body.dark-mode .small-text,
body.dark-mode .login-side-note p {
    color: #bdbdbd;
}

body.dark-mode .input-group-text,
body.dark-mode .form-control,
body.dark-mode .toggle-password-btn {
    background: #1e1e1e;
    color: #ffffff;
    border-color: #333;
}

body.dark-mode .form-control::placeholder {
    color: #999;
}

body.dark-mode .form-control:focus {
    border-color: #444;
}

body.dark-mode .alert-danger {
    background-color: #3a1d1d;
    color: #ffb3b3;
    border-color: #602727;
}

body.dark-mode .alert-success {
    background-color: #16341f;
    color: #b7f7c7;
    border-color: #255333;
}

body.dark-mode .login-side-note {
    border-top-color: rgba(255,255,255,0.08);
}

@media (max-width: 991px) {
    body {
        padding: 12px;
        align-items: flex-start;
    }

    .page-top-controls {
        justify-content: center;
        margin-bottom: 12px;
    }

    .left-panel {
        padding: 24px 22px;
        text-align: left;
        align-items: stretch;
    }

    .welcome-header {
        align-items: center;
    }

    .expiry-grid {
        grid-template-columns: 1fr;
    }

    .right-panel {
        padding: 24px 20px;
    }
}

@media (max-width: 767px) {
    body {
        padding: 10px;
    }

    .page-top-controls {
        gap: 8px;
        margin-bottom: 10px;
    }

    .top-btn {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .login-wrapper {
        border-radius: 18px;
    }

    .left-panel {
        padding: 20px 16px;
    }

    .welcome-header {
        gap: 12px;
    }

    .shop-logo {
        width: 68px;
        height: 68px;
    }

    .left-panel h1 {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .shop-info-card,
    .expiry-card {
        padding: 13px;
        border-radius: 15px;
    }

    .expiry-value {
        font-size: 14px;
    }

    .right-panel {
        padding: 20px 15px 18px;
    }

    .login-side-note {
        margin-top: 12px;
        padding-top: 10px;
    }

    .login-side-note p {
        font-size: 12px;
    }

    .icon-circle {
        width: 52px;
        height: 52px;
        font-size: 22px;
        margin-bottom: 10px;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-control {
        padding: 10px 11px;
        font-size: 13px;
    }

    .btn-login {
        padding: 10px;
        font-size: 13px;
        border-radius: 10px;
    }

    .small-text {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .top-btn {
        flex: 1 1 100%;
    }

    .left-panel {
        padding: 18px 14px;
    }

    .right-panel {
        padding: 18px 14px 16px;
    }

    .left-panel h1 {
        font-size: 1.35rem;
    }

    .login-title {
        font-size: 1.25rem;
    }

    .icon-circle {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .welcome-header {
        flex-direction: row;
        align-items: center;
    }

    .shop-logo {
        width: 58px;
        height: 58px;
        border-radius: 14px;
    }
}