/* General styles */
*,
*::before,
*::after {
    box-sizing: border-box;  /* Ensure padding and borders are included in element's width and height */
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.register-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden; /* Prevent any overflow */
}

h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.input-icon {
    position: relative;
    margin-bottom: 15px;
}

.input-icon input[type="email"],
.input-icon input[type="password"],
.input-icon input[type="text"] {
    width: 100%;
    padding: 10px 10px 10px 30px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.input-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #218838;
}

/* Account type selection styles */
.account-type {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.account-type label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    font-size: 1em;
}

.account-type input[type="radio"] {
    margin-right: 5px;
}

.error-message {
    color: #d9534f;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
}

.close-btn {
    color: #721c24;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}
