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

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
}

.container {
    max-width: 900px;
    width: 90%;
    margin: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.content-wrapper {
    display: flex;
    min-height: 500px;
}

.left-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.05) 0%, rgba(255, 20, 147, 0.05) 100%);
}

.right-section {
    flex: 1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 14px;
    color: #718096;
    font-weight: 400;
}

form {
    padding: 0;
}

.description {
    text-align: center;
    margin-top: 20px;
}

.description p {
    font-size: 16px;
    color: #718096;
    margin-bottom: 10px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    text-align: left;
}

.input-wrapper, .textarea-wrapper, .select-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.input-wrapper.focused, .textarea-wrapper.focused, .select-wrapper.focused {
    transform: translateY(-2px);
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
    color: #2d3748;
}

input:focus, textarea:focus, select:focus {
    border-color: #ff69b4;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
    color: #2d3748;
}

input::placeholder, textarea::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.6;
    pointer-events: none;
}

.amount-wrapper {
    position: relative;
}

.currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #4a5568;
    font-size: 16px;
}

.amount-wrapper input {
    padding-left: 50px;
    padding-right: 50px;
}

.help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #718096;
    text-align: left;
}

textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 100px;
    font-family: inherit;
}

.textarea-wrapper {
    position: relative;
}

.char-count {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: #999;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

.select-wrapper {
    position: relative;
}

select {
    appearance: none;
    cursor: pointer;
    padding-right: 50px;
    color: #2d3748;
}

select option {
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    padding: 8px;
}

select option:checked {
    background: rgba(255, 105, 180, 0.1);
    color: #2d3748;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
    font-size: 12px;
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

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

.btn-text {
    font-family: inherit;
}

.btn-icon {
    font-size: 20px;
}

.footer {
    text-align: center;
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(255, 105, 180, 0.1);
    background: rgba(255, 105, 180, 0.02);
}

.footer p {
    font-size: 13px;
    color: #718096;
    font-weight: 400;
}

/* 通知樣式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.notification.success {
    background: linear-gradient(135deg, #51cf66, #40c057);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        max-width: 420px;
        margin: 10px;
        border-radius: 20px;
    }
    
    .content-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .left-section {
        padding: 30px 20px 20px;
    }
    
    .right-section {
        padding: 20px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .header {
        margin-bottom: 20px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .description {
        margin-top: 15px;
    }
    
    .description p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    input, textarea, select {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 14px 18px;
        font-size: 16px;
        margin-top: 20px;
    }
}

/* 輸入框值的顏色 */
input[type="text"], 
input[type="email"], 
input[type="number"], 
textarea, 
select {
    color: #2d3748 !important;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="number"]:focus, 
textarea:focus, 
select:focus {
    color: #2d3748 !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .container {
        background: rgba(26, 32, 44, 0.45);
        color: #e2e8f0;
    }
    
    .title {
        color: #e2e8f0;
    }
    
    .subtitle, .help-text, .footer p {
        color: #a0aec0;
    }
    
    label {
        color: #cbd5e0;
    }
    
    input, textarea, select {
        background: rgba(45, 55, 72, 0.8);
        border-color: #4a5568;
        color: #e2e8f0 !important;
    }
    
    input:focus, textarea:focus, select:focus {
        color: #e2e8f0 !important;
        background: rgba(45, 55, 72, 0.8) !important;
    }
    
    input::placeholder, textarea::placeholder {
        color: #718096;
    }
    
    select option {
        background: rgba(45, 55, 72, 0.95);
        color: #e2e8f0;
    }
}
/* === 隱藏 SC Toggle === */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.toggle-text {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e2e8f0;
    transition: 0.4s;
    border-radius: 34px;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.switch:hover .slider {
    box-shadow: 0 0 6px rgba(255, 105, 180, 0.5);
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .toggle-text {
        color: #cbd5e0;
    }

    .slider {
        background: #4a5568;
    }

    .switch input:checked + .slider {
        background: linear-gradient(135deg, #ff85c0 0%, #ff1493 100%);
    }
}
