/* Base styles for all modals */
.signin-isPreview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Specific styles for modals with background images */
.signin-isPreview--withImage {
    background-color: transparent; /* Remove background color for modals with images */
}

/* Container for the background image */
.signin-y_pSY {
    background-position: 50%;
    background-size: cover;
    display: block;
}

/* Specific background image for the first child */
.signin-y_pSY:nth-child(1) {
    background-image: url('https://cdn.shopify.com/s/files/1/0626/6454/0330/files/Leonardo_Lightning_XL_A_professional_male_tattoo_artist_smilin_0.jpg?v=1741177539?width=640&height=860&crop=center');
}

/* Styles for the content container */
.signin-QrgnX {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Styles for the header section */
.signin-R5I4c {
    text-align: center;
}

/* Styles for the header text */
.signin-gGLia {
    margin-bottom: 10px;
    font-size: 24px;
}

/* Styles for the subheader text */
.signin-Zrhh7 {
    margin-bottom: 20px;
}

/* Styles for the form container */
.signin-P4grn {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Styles for the input container */
.signin-uO2Nt {
    position: relative;
}

/* Styles for the input field */
.signin-bETlx {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Styles for the input label */
.signin-UX763 {
    position: absolute;
    top: 8px;
    left: 10px;
    background-color: white;
    padding: 0 5px;
    font-size: 14px;
    color: #666;
    transition: top 0.3s, font-size 0.3s;
}

/* Styles for the label when the input is focused or has content */
.signin-bETlx:focus + .signin-UX763,
.signin-bETlx:not(:placeholder-shown) + .signin-UX763 {
    top: -10px;
    font-size: 12px;
}

/* Styles for the submit button */
.signin-POo7P {
    width: 98%;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Hover effect for the submit button */
.signin-POo7P:hover {
    background-color: #218838;
}

/* Styles for the footer text */
.signin-cmVHa {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* Styles for the close button */
.signin-B_HlB {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* Styles for the close button icon */
.signin-B_HlB svg {
    width: 12px;
    height: 12px;
}

/* Hover effect for the close button icon */
.signin-B_HlB:hover path {
    fill: #000;
}

/* Styles for the modal container */
.signin-aZuqK {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    max-width: 640px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Additional styles for the verification code container */
.signincode-container {
    display: none; /* Initially hidden */
    position: fixed; /* 设置为固定定位 */
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 确保完全居中 */
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* 确保在最上层 */
}

/* Styles for the verification code input fields */
.signincode-code-input {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.signincode-code-input input {
    width: 20% !important;
    padding: 5px !important;
    text-align: center;
    border: 2px solid #ccc !important;
    border-radius: 5px;
    font-size: 16px !important;
    font-weight: bold !important; /* 文字加粗 */
    color: #000 !important; /* 文字颜色为黑色 */
}

/* Styles for the resend code link */
.signincode-resend {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.signincode-resend a {
    color: #28a745;
    text-decoration: none;
}

.signincode-resend a:hover {
    text-decoration: underline;
}

/* Styles for the resend link when countdown is complete */
#signincode-resendLink {
    cursor: pointer; /* 鼠标悬停时变成手形 */
}

/* Styles for the first name modal */
#firstname-modal {
    display: none; /* Initially hidden */
    position: fixed; /* 设置为固定定位 */
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 确保完全居中 */
    z-index: 1001; /* 确保在最上层 */
}
/* Media query for mobile devices */
@media (max-width: 768px) {
    .signin-y_pSY:nth-child(1) {
        display: none;
    }
    .signin-aZuqK {
        grid-template-columns: 1fr; /* Change to single column layout */
    }
}