/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(to bottom, #e6f2ef, #f9f9f9);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 600px;
}

.form-box h2 {
    font-weight: 700;
    font-size: 1.5rem;
    color: #212529;
    margin-bottom: 6px;
    text-align: center;
}

.form-box p {
    font-weight: 400;
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
}

.role-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    display: block;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.radio-item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-item .icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.radio-item input[type="radio"]:checked + .icon {
    color: #20c997; /* green color for checked icon */
}

.radio-item input[type="radio"]:checked + .icon,
.radio-item input[type="radio"]:checked + .icon + span {
    color: #20c997;
}

.radio-item:hover {
    background-color: #f8f9fa;
}
.radio-item input[type="radio"] {
  position: static;
  opacity: 1;
  width: auto;
  height: auto;
  margin-right: 8px;
  cursor: pointer;
}



label[for="email"],
label[for="last_name"],
label[for="password"],
label[for="first_name"] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 6px;
    display: block;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 18px;
    border: 1.5px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    color: #495057;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgb(32 201 151 / 0.25);
}

label[for="name"] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 6px;
    display: block;
}

input[type="text"]#name {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 18px;
    border: 1.5px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    color: #495057;
    transition: border-color 0.3s ease;
}

input[type="text"]#name:focus {
    outline: none;
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgb(32 201 151 / 0.25);
}



.btn-submit {
    width: 100%;
    padding: 12px 0;
    background-color: #20c997;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #17a673;
}

.footer-text {
    font-size: 0.875rem;
    text-align: center;
    margin-top: 14px;
    color: #495057;
}

.footer-text a {
    color: #20c997;
    font-weight: 700;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}
