body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-card {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 34px 28px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.auth-logo {
    margin-bottom: 5px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.auth-welcome {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.auth-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.auth-card .customer-language-switcher {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 30px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 999px;
    background: #111827;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

.auth-card .customer-language-switcher a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.auth-card .customer-language-switcher a:visited {
    color: rgba(255, 255, 255, 0.78);
}

.auth-card .customer-language-switcher a + a::before {
    content: "|";
    margin: 0 7px;
    color: rgba(255, 255, 255, 0.42);
}

.auth-card .customer-language-switcher a.is-active,
.auth-card .customer-language-switcher a.is-active:visited {
    color: #ffcc00;
}

.auth-success {
    margin-top: 12px;
    margin-bottom: 12px;
    color: #1b5e20;
    font-size: 14px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
    color: #111827;
}

.required {
    color: #c62828;
}

.input-wrap {
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    background: #fff;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 11px;
    background: transparent;
    border: 0;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    width: auto;
    margin: 0;
    padding: 0;
}


.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.remember-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #111827;
}

.remember-row span {
    line-height: 1.4;
}

.auth-submit {
    margin-top: 16px;
    width: 100%;
    border: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit:hover,
.success-popup-btn:hover {
    opacity: 0.92;
}

.auth-error {
    margin-top: 12px;
    margin-bottom: 12px;
    color: #c62828;
    font-size: 14px;
}

.auth-helper {
    display: block;
    margin: 14px 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.auth-link-row {
    margin-top: 15px;
    font-size: 14px;
}

.auth-link-row a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

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

.success-popup {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.success-popup-box {
    background: #fff;
    width: 100%;
    max-width: 460px;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
}

.success-popup-box h3 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #111827;
}

.success-popup-box p {
    margin: 0 0 10px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
}

.success-popup-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    width: auto;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 48px 22px 22px;
        border-radius: 14px;
        max-width: 95%;
    }

    .auth-card .customer-language-switcher {
        top: 14px;
        right: 14px;
    }

    .auth-logo img {
        max-width: 140px;
    }

    .auth-welcome {
        font-size: 20px;
    }

    .auth-title {
        font-size: 20px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 14px 16px;
        font-size: 16px;
    }

    .password-toggle {
        top: 14px;
        font-size: 20px;
    }

    
.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.remember-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #111827;
}

.remember-row span {
    line-height: 1.4;
}

.auth-submit {
        padding: 14px 16px;
        font-size: 16px;
    }

    label,
    .auth-link-row,
    .auth-error,
    .auth-success,
    .auth-helper {
    font-size: 15px;
    }

    .auth-helper {
        margin-top: 14px;
        line-height: 1.45;
    }

    .success-popup-box {
        padding: 22px;
    }

    .success-popup-box h3 {
        font-size: 22px;
    }

    .success-popup-box p {
        font-size: 16px;
    }

    .success-popup-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 14px 16px;
        font-size: 16px;
    }
}


.pwa-install-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #111827;
    color: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
}

.pwa-install-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.pwa-install-text span {
    color: rgba(255,255,255,0.82);
    line-height: 1.45;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-install-btn {
    border: 0;
    border-radius: 10px;
    padding: 11px 14px;
    background: #ffcc00;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
}

.pwa-install-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 640px) {
    .pwa-install-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .pwa-install-actions {
        justify-content: space-between;
    }
}
