/* Reset some default styles */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    box-sizing: border-box;
}

body {
    /*line-height: 1;*/
    /*font-family: "Microsoft YaHei", Arial, sans-serif;*/
    /*color: #333;*/
    background-color: #f9f9f9;
    /* Light background */
}

ol,
ul {
    list-style: none;
}

a {
    /*text-decoration: none;*/
    /*color: inherit;*/
}

/* End of reset */

/* Layout helpers */
.container {
    /*width: 100%;*/
    /*max-width: 1200px;*/
    /*margin: 0 auto;*/
    /*box-sizing: border-box;*/
    /*padding: 0 15px;*/
}

.flex-container {
    display: flex;
    /* gap: 10px; */
    /* small gap between items */
}

.flex-space-between {
    justify-content: space-between;
}

/* End layout helpers */

/* Create account section wrapper */
.create-account-section {
    padding: 30px 0;
}

/* Left-side content area (Why choose) */
.left-side {
    /* width: 47%; */
    /* margin-right: 30px; */
    /* padding: 20px; */
    background: #f9f9f9;
    border-radius: 4px;

    width: 40%;
    margin-right: 0px;
    padding: 0px;
}

.left-side img{
    width: 100%;
}

.left-side h2 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #252525;
}

/* Card style */
.card {
    background-color: #f9f9f9;
    /* or #f9f9f9; up to your design preference */
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 15px;
}

.card-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-top .icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.card-top h3 {
    font-size: 16px;
    margin-right: auto;
    /* pushes the arrow to the far right */
    white-space: nowrap;
}

.card-top svg {
    flex-shrink: 0;
    color: #999;
}

.desc {
    font-size: 14px;
    line-height: 1.5;
    color: #6a6a6a;
}

/* Right-side content area (Form) */
.right-side {
    width: 55%;
    background: #fff;
    border-radius: 4px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Form title */
.right-side h1 {
    text-align: center;
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: bold;
}

/* Form container */
.form-container {
    border-radius: 4px;
    padding: 20px;
    width: 80%;
    margin: 0 auto;
}

/* Single form item */
.form-item {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #6a6a6a;
    border-radius: 4px;
    height: 40px;
    overflow: hidden;
    margin-top: 16px;
}

.form-item-label {
    width: 90px;
    font-size: 14px;
    color: #666;
    border-right: 1px solid #6a6a6a;
    line-height: 40px;
    padding-left: 10px;
}

.form-item-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 14px;
}

.form-item-input:focus {
    outline: none;
    border-color: #ff6600;
}

.form-item-error {
    font-size: 12px;
    color: #ff0000;
    margin: 4px;
}

/* For small code input */
.form-item-input.small {
    max-width: 100%;
}

/* SMS code area in flex */
.form-item-sms {
    width: 100%;
}

/* Buttons for getting code */
.btn-get-code {
    display: block;
    width: 130px;
    height: 40px;
    background: #ffedb2;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    border: 2px solid lightgray;
    margin-top: 16px;
}

.btn-get-code:hover {
    background-color: #ffd769;
}

.btn-get-code:disabled {
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: #aaa;
}

/* Checkbox & tips */
.form-tips {
    font-size: 12px;
    color: #000;
    margin-top: 10px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.form-tips span {
    margin: 0 5px;
}

/* Submit button */
.form-submit {
    text-align: center;
    margin-top: 20px;
}

.form-submit button {
    width: 100%;
    height: 40px;
    background-color: #DC0000;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit button:hover {
    background-color: #B00000; /* 比原来的 #DC0000 稍微深一点 */
}


/* Bonus ad area */
.bonus {
    margin-top: 20px;
    text-align: center;
}

.bonus .ad {
    max-width: 100%;
    margin-bottom: 20px;
    display: inline-block;
}

.toast {
    position: fixed;
    background: #ccc;
    padding: 10px 10px;
    border-radius: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 18px;
    z-index: 10000;
    max-width: 80%;
    display: none;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* --- Responsive (Mobile) Styles --- */
@media (max-width: 1080px) {
    .flex-container {
        flex-direction: column;
    }

    /* Left side & right side both 100% width in mobile */
    .left-side,
    .right-side {
        width: 100%;
        margin: 0;
        padding: 15px;
    }

    /* Optional: if you want the "Why choose" section to appear below the form
     you can reorder them in DOM or use "order" property. For example:
     .left-side {
       order: 2;
     }
     .right-side {
       order: 1;
     }
  */
    .right-side {
        padding: 20px;
    }

    .form-container {
        width: 100%;
        margin: 0;
        /* remove auto margin so it spans full width in small screens */
        padding: 10px;
    }

    .form-item-label {
        width: 80px;
        /* narrower label to fit small screens, adjust if needed */
        font-size: 13px;
    }

    .form-submit button {
        height: 44px;
        font-size: 16px;
    }

    /* Adjust card spacing for mobile */
    .card {
        margin-bottom: 15px;
    }

    .left-side h2 {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .form-tips{
        font-size: 0.7rem;
    }
}