/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root {
    --primary-color: #EE4D2D;
    /* Shopee Orange */
    --primary-dark: #d73211;
    --text-color: #333333;
    --text-secondary: #555555;
    --bg-color: #F8F8F8;
    --white: #FFFFFF;
    --border-color: #E8E8E8;
    --footer-bg: #FBFBFB;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.page-title {
    font-size: 1.25rem;
    color: #222;
}

.help-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

/* Main Content */
main {
    flex: 1;
    background-color: var(--primary-color);
    /* Shopee's characteristic gradient/solid background for login page */
    background-image: linear-gradient(180deg, #ee4d2d 0%, #ff7337 100%);
    display: flex;
    flex-direction: column;
    /* Changed to column to stack login area and FAQ */
    align-items: center;
    padding: 40px 0;
}

.login-container {
    display: flex;
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    /* Add space below login area */
}

.banner-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding-right: 40px;
    text-align: center;
}

.banner-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.banner-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.login-card {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    width: 400px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.login-header {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: #222;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #777;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.card-links {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75rem;
}

.card-links a {
    color: #0055AA;
    text-decoration: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #ccc;
    font-size: 0.75rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e8e8e8;
}

.divider span {
    padding: 0 10px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-btn {
    border: 1px solid #e8e8e8;
    padding: 8px 20px;
    border-radius: 2px;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.social-btn:hover {
    background-color: #f5f5f5;
}

/* FAQ Section */
.faq-section {
    max-width: 1040px;
    width: 100%;
    margin: 40px auto 0;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.8rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 15px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 15px 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
    /* Hidden by default if using JS, or use details/summary */
}

/* Using Details/Summary for FAQ (No JS needed) */
details.faq-details {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

details.faq-details summary {
    font-weight: 500;
    cursor: pointer;
    padding: 10px;
    list-style: none;
    /* Remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.faq-details summary::-webkit-details-marker {
    display: none;
}

details.faq-details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

details.faq-details[open] summary::after {
    content: '-';
}

details.faq-details p {
    padding: 10px;
    line-height: 1.6;
    color: #555;
    background-color: #fafafa;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 40px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(0, 0, 0, 0.54);
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

/* Payment Icons Grid */
.payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 200px;
}

.payment-icon {
    width: 50px;
    height: 30px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.payment-icon svg {
    max-width: 100%;
    max-height: 100%;
}

.copyright {
    text-align: center;
    border-top: 1px solid #e8e8e8;
    padding-top: 20px;
    color: rgba(0, 0, 0, 0.54);
}

/* Simple Page Variant (for About/Contact) */
.white-bg-main {
    background: var(--white);
    display: block;
}

.content-page {
    padding: 40px 0;
}

.content-page h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-card {
    background: #fff;
    padding: 20px;
    line-height: 1.6;
}

.nav-active {
    color: var(--primary-color) !important;
    font-weight: 700;
}