* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-image: url('main-page-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    max-width: 500px;
    margin: 0 auto;
}

/* Logo section */
.logo-section {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.unicom-logo {
    height: 60px;
    width: auto;
    opacity: 0.9;
}

/* Remove background section */
.background-section {
    display: none;
}

.background-image {
    display: none;
}

/* Form section */
.form-section {
    background: transparent;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.form-container {
    width: 100%;
    max-width: 350px;
    text-align: center;
    position: relative;
    background-image: url('Text Box.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 30px 25px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Title section */
.title-section {
    margin-bottom: 15px;
}

.title-image {
    max-width: 100%;
    height: auto;
}

/* Input section */
.input-section {
    margin-bottom: 20px;
}

.input-container {
    position: relative;
    background: url('Name Field.png') no-repeat center;
    background-size: contain;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.name-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #666;
    text-align: center;
    width: 80%;
    padding: 10px;
    font-style: italic;
}

.name-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Button section */
.button-section {
    margin-bottom: 10px;
}

.start-button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.start-button:hover {
    transform: scale(1.05);
}

.start-button:active {
    transform: scale(0.95);
}

.button-image {
    max-width: 100%;
    height: auto;
    width: 200px;
}

/* Remove red section */
.red-section {
    display: none;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .logo-section {
        top: 15px;
    }
    
    .unicom-logo {
        height: 50px;
    }
    
    .form-section {
        padding: 15px;
        min-height: 180px;
    }
    
    .form-container {
        max-width: 300px;
        padding: 25px 20px;
        min-height: 250px;
    }
    
    .input-container {
        height: 50px;
    }
    
    .name-input {
        font-size: 14px;
    }
    
    .button-image {
        width: 180px;
    }
}

/* Desktop optimizations - maintain portrait layout */
@media (min-width: 769px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .logo-section {
        top: 25px;
    }
    
    .unicom-logo {
        height: 70px;
    }
    
    .container {
        max-width: 450px;
        min-height: 600px;
        padding: 30px;
    }
    
    .form-container {
        max-width: 380px;
        min-height: 320px;
        padding: 40px 30px;
    }
    
    .title-section {
        margin-bottom: 20px;
    }
    
    .input-section {
        margin-bottom: 25px;
    }
    
    .button-section {
        margin-bottom: 15px;
    }
    
    .button-image {
        width: 220px;
    }
    
    .input-container {
        height: 65px;
    }
    
    .name-input {
        font-size: 18px;
    }
}

/* Large desktop - keep it centered and portrait-like */
@media (min-width: 1200px) {
    .container {
        max-width: 500px;
    }
    
    .form-container {
        max-width: 400px;
    }
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .start-button {
    cursor: not-allowed;
}

/* Error message styling */
.error-message {
    color: #E53E3E;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.success-message {
    color: #38A169;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}