main {
    width: 100vw;
    min-height: 100vh;
}

.register-instruction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 0 50px;
}

.register-text {
    flex: 1;
}

.register-title {
    font-size: 32px !important;
    margin: 0 0 10px 0;
    color: black;
    text-align: center;
    margin-right: -140px;
}

.register-detail {
    font-size: 24px;
    margin: 0;
    color: black;
    text-align: center;
    margin-right: -140px;
    margin-top: 10px;
}

.register-logo {
    flex-shrink: 0;
    margin-left: 30px;
}

.register-logo img {
    max-height: 60px;
    width: auto;
}

section {
    background: var(--gradient);
    padding: 50px;
}

form {
    margin-left: auto;
    margin-right: auto;
    width: 300px;
}

.field-group {
    margin-bottom: 20px;
}

.field-group > label {
    color: white;
    font-size: 20px;
}

.field-group > input, .field-group > select {
    font-size: 18px;
    border: none;
    border-radius: 10px;
    margin-top: 15px;
    padding: 10px;
    outline: none;
    width: 280px;
}

.warning-mail {
    margin-top: 10px;
    font-size: 1em;
    color: white;
}

.login-warning {
    display: none;
    color: red;
}

.warning-visible {
    display: block;
}

button[type="submit"] {
    border: none;
    border-radius: 10px;
    color: var(--primary);
    cursor: pointer;
    display: block;
    font-size: 18px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    outline: none;
    background-color: white;
}

button[type="submit"]:hover {
    background-color: var(--primary);
    color: white;
}

/* Section visiteur */
.visitor-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.visitor-text {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
}

.visitor-button {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visitor-button:hover {
    background-color: white;
    color: var(--primary);
}

.support {
    color: white;
    text-align: center;
    margin-top: 20px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: black;
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.modal p {
    color: #666;
    margin-bottom: 20px;
}

.modal-field-group {
    margin-bottom: 20px;
}

.modal-field-group label {
    display: block;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 5px;
}

.modal-field-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

#visitor-register {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
}

#visitor-register:hover {
    opacity: 0.9;
}

/* Responsive */
@media only screen and (max-width: 800px) {
    .register-instruction {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .register-text {
        text-align: center;
    }
    
    .register-title {
        font-size: 28px !important;
        text-align: center;
        margin-right: 0;
    }
    
    .register-detail {
        font-size: 20px;
        text-align: center;
        margin-right: 0;
    }
    
    .register-logo {
        margin-left: 0;
        margin-top: 20px;
    }
    
    section {
        padding: 30px 20px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }
}