/**
 * Front-end styles for the Registration Form Block
 */

.dbp-form-container {
    margin-bottom: 1em;
}

.dbp-registration-form {
    margin-bottom: 20px;
}

/* Default styling that will be overridden by custom styles */
.dbp-registration-form form {
    width: 100%;
    box-sizing: border-box;
}

.dbp-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.dbp-registration-form input[type="text"],
.dbp-registration-form input[type="email"],
.dbp-registration-form input[type="password"],
.dbp-registration-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    box-sizing: border-box;
}

.dbp-registration-form input[type="submit"],
.dbp-registration-form button {
    background-color: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
}

.dbp-registration-form input[type="submit"]:hover,
.dbp-registration-form button:hover {
    background-color: #0069a8;
}

/* Field layout styles */
.dbp-field-wrapper {
    margin-bottom: 20px;
}

.dbp-form-field {
    margin-bottom: 15px;
}

.dbp-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.dbp-form-field input[type="text"],
.dbp-form-field input[type="email"],
.dbp-form-field input[type="password"],
.dbp-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dbp-form-submit {
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.dbp-form-submit input[type="submit"] {
    cursor: pointer;
    padding: 10px 20px;
    background-color: #007cba;
    color: #ffffff;
    border: none;
    border-radius: 4px;
}

/* Stacked layout */
.dbp-field-wrapper.stacked > p {
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Side-by-side layout */
.dbp-field-wrapper.side-by-side {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.dbp-field-wrapper.side-by-side .dbp-form-field {
    width: calc(50% - 10px);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .dbp-field-wrapper.side-by-side .dbp-form-field {
        width: 100%;
    }
}

/* Error message styling */
#usernameModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
}

#usernameModal > div {
    background: white;
    width: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#usernameModal h4 {
    margin: 0 0 10px 0;
}

#usernameModal p {
    margin: 0 0 10px 0;
}

#usernameModal button {
    padding: 10px 15px;
    background-color: #007cba;
    color: #ffffff;
    border: none;
    cursor: pointer;
    width: 100%;
} 