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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100vh;
}

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-bar {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-content {
    width: 100%;
    max-width: 750px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-title {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Main Content */
main {
    flex: 1;
    padding-top: 46px;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background-color: #fff;
    min-height: calc(100vh - 46px);
}

.section {
    padding: 0 0 20px;
}

/* Banner */
.header-banner {
    width: 100%;
    height: 280px;
    background-image: url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Page Title */
.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.icon-facebook {
    width: 24px;
    height: 24px;
}

/* Description */
.desc {
    text-align: center;
    padding: 0 16px 24px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.desc div:first-child {
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

/* Message Section */
.message-section {
    padding: 0 16px;
}

.message-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background-color: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.message-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.message-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-icon i {
    font-size: 18px;
    color: #1976d2;
}

.message-content {
    flex: 1;
}

.message-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.message-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* Button Wrap */
.btn-wrap {
    padding: 24px 16px 32px;
}

.btn-primary {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #0866ff 0%, #0052cc 100%);
    color: #fff;
    border: none;
    border-radius: 23px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(8, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 102, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 750px;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 32px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

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

.close-btn:hover {
    background-color: #f5f5f5;
    color: #666;
}

.modal-body {
    text-align: center;
    padding: 20px 0;
}

.modal-illustration {
    width: 180px;
    height: 135px;
    margin: 0 auto 24px;
}

.illustration-svg {
    width: 100%;
    height: 100%;
}

.modal-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.input-wrap {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.auth-input {
    width: 100%;
    height: 48px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 40px 0 16px;
    font-size: 16px;
    color: #1a1a1a;
    background-color: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #0866ff;
    box-shadow: 0 0 0 3px rgba(8, 102, 255, 0.1);
    background-color: #fff;
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    display: none;
}

.clear-btn.visible {
    display: block;
}

.clear-btn:hover {
    color: #999;
}

.modal-footer {
    padding-top: 24px;
}

.btn-submit {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #0866ff 0%, #0052cc 100%);
    color: #fff;
    border: none;
    border-radius: 23px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(8, 102, 255, 0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 102, 255, 0.4);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.toast i {
    font-size: 18px;
    color: #ff9800;
}

/* Responsive */
@media (max-width: 375px) {
    .header-banner {
        height: 240px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .message-title {
        font-size: 14px;
    }
    
    .message-desc {
        font-size: 12px;
    }
}

@media (min-width: 751px) {
    body {
        background-color: #e8eaf6;
    }
    
    .container {
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}
