body, html {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    overflow-x: hidden;
    height: 100vh;
}

.background {
    background-image: url('images/1.jpg');
    min-height: 100vh;
    width: 100vw;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100vw 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
}

.background img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 2vh;
    object-fit: contain;
}

.background h1 {
    color: #000000;
    font-size: 3rem;
    margin-top: 0;
    white-space: normal;
    max-width: 90vw;
    word-wrap: break-word;
    text-align: center;
}

.background button {
    background-color: #d3d3d3;
    color: #000000;
    border: none;
    padding: 1em 2em;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 2vh;
    max-width: 100%;
    word-wrap: break-word;
    text-align: center;
}

.background button:hover {
    background-color: #c0c0c0;
}

form {
    background: rgba(255, 255, 255, 0.85);
    padding: 2em 1em;
    border-radius: 10px;
    text-align: center;
    margin: 2em auto;
    max-width: 400px;
    width: 90vw;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

form h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100vw;
    width: 100%;
    text-align: center;
}

form label {
    display: block;
    margin: 10px 0 5px;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

form button {
    padding: 10px 20px;
    background-color: #436af6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

form button:hover {
    background-color: #436af6;
}

.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader.hidden {
    display: none;
}

#shareInstagram {
    background-color: #E1306C;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

#shareInstagram:hover {
    background-color: #C13584;
}

.registration-container {
    max-width: 500px;
    width: 110vw;
    margin: 0 auto;
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 28px;
    border: 2px solid #4b2a7b;
}

@media (max-width: 600px) {
    .registration-container {
        max-width: 100vw;
        padding: 12px 2vw;
        border-radius: 10px;
    }
    .background img {
        max-width: 120px;
    }
    .background h1 {
        font-size: 2rem;
        margin-top: 0;
    }
    form {
        max-width: 95vw;
        padding: 1em 0.5em;
    }
}

@media (max-width: 480px) {
    .background img {
        max-width: 80px;
    }
    .background h1 {
        font-size: 1.2rem;
        margin-top: 0;
    }
    .background button {
        font-size: 1rem;
        padding: 0.8em 1em;
    }
    form {
        max-width: 100vw;
        padding: 0.5em 0.2em;
    }
}


