* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 80px;
    position: relative;
}

.top-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 80px;
    font-weight: 900;
    font-family: helvetica-w01-bold, helvetica-w02-bold, helvetica-lt-w10-bold, sans-serif;
    line-height: 1.1;
    text-align: center;
    margin: 0;
    z-index: 10;
    white-space: nowrap;
    text-shadow: rgba(0, 0, 0, 0.298039) 0px 5px 0px;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
}

.verification-box {
    background: transparent;
    padding: 40px 30px;
    text-align: center;
}

.title-section {
    text-align: center;
}





#exclusiveTitle {
    color: white;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    padding: 20px 40px;
    border-radius: 50px;
    border: 2px solid white;
    background: rgba(147, 112, 219, 0.3);
    display: inline-block;
}

#exclusiveTitle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.input-section {
    text-align: center;
    margin-top: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}



#verificationCode {
    flex: 1;
    max-width: 300px;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    min-height: 56px;
    text-align: center;
}

#verificationCode:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#verificationCode::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.submit-btn {
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(147, 112, 219, 0.3);
    color: white;
    min-height: 56px;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(147, 112, 219, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



.message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message.success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid #c3e6cb;
    backdrop-filter: blur(5px);
}

.message.error {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid #f5c6cb;
    backdrop-filter: blur(5px);
}

.message.info {
    background: rgba(209, 236, 241, 0.9);
    color: #0c5460;
    border: 1px solid #bee5eb;
    backdrop-filter: blur(5px);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tablet responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
        padding-bottom: 60px;
    }
    
    .top-title {
        font-size: 72px;
        top: 15%;
        white-space: normal;
        max-width: 90vw;
    }
    
    .container {
        max-width: 400px;
        bottom: 60px;
        padding: 0 15px;
    }
    
    .verification-box {
        padding: 30px 20px;
    }
    
    #exclusiveTitle {
        font-size: 20px;
        padding: 15px 30px;
    }
    
    .input-group {
        flex-direction: row;
        gap: 10px;
        max-width: 320px;
    }
    
    #verificationCode {
        flex: 1;
        padding: 14px 18px;
        min-height: 52px;
        max-width: none;
    }
    
    .submit-btn {
        padding: 14px 20px;
        min-height: 52px;
        font-size: 15px;
        width: auto;
        min-width: 80px;
    }
}

/* Mobile responsive design */
@media (max-width: 480px) {
    body {
        padding: 10px;
        padding-bottom: 40px;
    }
    
    .top-title {
        font-size: 48px;
        top: 10%;
        white-space: normal;
        max-width: 95vw;
        letter-spacing: 1px;
    }
    
    .container {
        max-width: 100%;
        bottom: 40px;
        padding: 0 10px;
    }
    
    .verification-box {
        padding: 25px 15px;
    }
    
    #exclusiveTitle {
        font-size: 18px;
        padding: 12px 25px;
        border-radius: 40px;
    }
    
    .input-group {
        flex-direction: row;
        gap: 8px;
        max-width: 300px;
    }
    
    #verificationCode {
        flex: 1;
        padding: 15px 20px;
        min-height: 50px;
        font-size: 16px;
        max-width: none;
    }
    
    .submit-btn {
        padding: 15px 16px;
        min-height: 50px;
        font-size: 16px;
        width: auto;
        min-width: 70px;
    }
    
    .message {
        padding: 12px;
        font-size: 13px;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    body {
        padding: 8px;
        padding-bottom: 30px;
    }
    
    .top-title {
        font-size: 36px;
        top: 8%;
        max-width: 98vw;
        letter-spacing: 0.5px;
    }
    
    .container {
        bottom: 30px;
        padding: 0 8px;
    }
    
    .verification-box {
        padding: 20px 12px;
    }
    
    #exclusiveTitle {
        font-size: 16px;
        padding: 10px 20px;
        border-radius: 35px;
    }
    
    .input-group {
        flex-direction: row;
        gap: 6px;
        max-width: 280px;
    }
    
    #verificationCode {
        flex: 1;
        padding: 12px 16px;
        min-height: 45px;
        font-size: 15px;
        max-width: none;
    }
    
    .submit-btn {
        padding: 12px 14px;
        min-height: 45px;
        font-size: 15px;
        width: auto;
        min-width: 60px;
    }
    
    .message {
        padding: 10px;
        font-size: 12px;
    }
}

/* Large desktop screens */
@media (min-width: 1200px) {
    .top-title {
        font-size: 108px;
    }
    
    .container {
        max-width: 500px;
    }
    
    .verification-box {
        padding: 50px 40px;
    }
    
    #exclusiveTitle {
        font-size: 28px;
        margin-bottom: 25px;
    }
    

    
    .input-group {
        max-width: 500px;
        gap: 15px;
    }
    
    #verificationCode {
        padding: 18px 24px;
        min-height: 60px;
        font-size: 17px;
    }
    
    .submit-btn {
        padding: 18px 28px;
        min-height: 60px;
        font-size: 17px;
    }
    
    .message {
        padding: 18px;
        font-size: 15px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .verification-box {
        border-width: 0.5px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    #verificationCode {
        min-height: 56px; /* Larger touch targets */
    }
    
    #exclusiveTitle {
        min-height: 48px; /* Larger touch targets for buttons */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .submit-btn {
        min-height: 56px; /* Larger touch targets for submit button */
        padding: 16px 24px;
    }
    
    /* Prevent zoom on input focus */
    input[type="text"] {
        font-size: 16px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .top-title {
        font-size: 36px;
        top: 15%;
        letter-spacing: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90vw;
    }
    
    .container {
        bottom: 40px;
    }
    
    .verification-box {
        padding: 20px 15px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .top-title {
        font-size: 32px;
        top: 5%;
    }
    
    .container {
        bottom: 20px;
    }
    
    .verification-box {
        padding: 20px 15px;
    }
    
    .input-group {
        flex-direction: row;
        gap: 10px;
        max-width: 400px;
    }
    
    #verificationCode {
        flex: 1;
        max-width: none;
    }
    
    .submit-btn {
        width: auto;
        min-width: 100px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .top-title {
        font-size: 28px;
        top: 10%;
        letter-spacing: 0.5px;
        max-width: 95vw;
        margin-top: 5em;
    }
    
    .container {
        width: calc(100% - 20px);
        max-width: none;
        bottom: 30px;
        margin-bottom: 10em;
    }
    
    .verification-box {
        padding: 15px 10px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    #verificationCode {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 12px;
    }
    
    #exclusiveTitle {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .top-title {
        font-size: 24px;
        top: 8%;
        letter-spacing: 0.3px;
        max-width: 98vw;
    }
    
    .container {
        bottom: 20px;
    }
    
    .verification-box {
        padding: 10px 5px;
    }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    #verificationCode {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #exclusiveTitle {
        border-width: 3px;
    }
    
    #verificationCode {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #exclusiveTitle {
        transition: none;
    }
    
    #verificationCode {
        transition: none;
    }
    
    .message {
        transition: none;
    }
}

