* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.4;
}

.container {
    max-width: 375px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #ffffff;
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: #ffffff;
    position: relative;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

.back-arrow {
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.back-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid #ff6b35;
}

.title {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.help-icon {
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    font-size: 16px;
    font-weight: bold;
}

/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 30px;
}

.shopee-logo {
    width: 65px;
    height: 65px;
    margin-top: -35px;
    background: url('../img/shopee.png') no-repeat center;
    background-size: contain;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Form Section */
.form-section {
    padding: 0 20px;
}

.phone-input-container {
    position: relative;
    margin-bottom: 20px;
}

.phone-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('../img/Telepon.png') no-repeat center;
    background-size: contain;
}

.phone-input {
    width: 100%;
    height: 48px;
    padding: 0 0 0 32px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 16px;
    background-color: transparent;
    outline: none;
}

.phone-input::placeholder {
    color: #cccccc;
}

.continue-button {
    width: 100%;
    height: 48px;
    background-color: #f0f0f0;
    color: #666666;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
}

.continue-button:hover {
    background-color: #e8e8e8;
}

/* Orange button state when phone number has 10+ digits */
.continue-button.orange-button {
    background-color: #ff6b35;
    color: #ffffff;
}

.continue-button.orange-button:hover {
    background-color: #e55a2b;
}

.password-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    float: right;
}

.password-link:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    clear: both;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.divider-text {
    padding: 0 16px;
    color: #999999;
    font-size: 14px;
    font-weight: 500;
}

/* Social Login Buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.social-button {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.social-button:hover {
    background-color: #f8f8f8;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.google-icon {
    background: url('../img/google.png') no-repeat center;
    background-size: contain;
}

.facebook-icon {
    background: url('../img/facebook.png') no-repeat center;
    background-size: contain;
}

.whatsapp-icon {
    background: url('../img/whatsapp.png') no-repeat center;
    background-size: contain;
}

.social-text {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.register-text {
    color: #999999;
    font-size: 14px;
}

.register-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
}

.register-link:hover {
    text-decoration: underline;
}

/* PIN Popup Styles */
.pin-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 43, 43, 0.493);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
}

.pin-popup-overlay.show {
    display: flex;
}

.pin-popup-container {
    width: 100%;
    max-width: auto;
    background-color: #f0efef;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    position: relative;
}

.pin-popup-overlay.show .pin-popup-container {
    transform: translateY(0);
}

/* PIN Popup Header */
.pin-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pin-title {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    margin: 0;
}

.pin-close-btn {
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.pin-close-btn:hover {
    background-color: #f0f0f0;
}

/* PIN Dots Container */
.pin-dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pin-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transition: background-color 0.2s;
}

.pin-dot.filled {
    background-color: #ff6600;
}

/* Forgot PIN Link */
.forgot-pin-container {
    text-align: center;
    margin-bottom: 30px;
}

.forgot-pin-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-pin-link:hover {
    text-decoration: underline;
}

/* Keypad Container */
.keypad-container {
    margin-bottom: 20px;
}

.keypad-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.keypad-btn {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 6px;
    background-color: #fafafa;
    color: #333333;
    font-size: 24px;
    font-weight: 500;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.keypad-btn:hover {
    background-color: #f8f8f8;
}

.keypad-btn:active {
    background-color: #e8e8e8;
    transform: scale(0.95);
}

.keypad-empty {
    background-color: transparent;
    box-shadow: none;
    cursor: default;
}

.keypad-empty:hover {
    background-color: transparent;
}

.keypad-backspace {
    background-color: #f8f8f8;
    color: #666666;
}

.keypad-backspace:hover {
    background-color: #e8e8e8;
}

.keypad-backspace svg {
    width: 20px;
    height: 20px;
}

/* Security Footer */
.pin-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.security-icon {
    font-size: 16px;
}

.security-text {
    font-size: 12px;
    color: #999999;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .container {
        max-width: 100%;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    .form-section {
        padding: 0 16px;
    }
    
    .pin-popup-container {
        padding: 16px 16px 24px;
    }
    
    .keypad-btn {
        width: 100%;
        height: 40px;
        font-size: 22px;
    }
}
