
/* Universal Selector */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Design */
body {
    min-height: 100vh;
    background: linear-gradient(120deg, #d4fc79, #96e6a1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    padding: 20px;
}

/* Registration Box */
.registration-box {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Heading */
.registration-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #237a45;
}

/* Label */
label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    color: #333;
}

/* Input and Select */
input,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 7px;
    outline: none;
    font-size: 15px;
}

/* Focus Effect */
input:focus,
select:focus {
    border-color: #237a45;
    box-shadow: 0 0 5px rgba(35, 122, 69, 0.3);
}

/* Button */
button {
    width: 100%;
    padding: 13px;
    background: #237a45;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Button Hover */
button:hover {
    background: #185c32;
}

/* Password Box */
.password-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.password-box input {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.password-box button {
    width: auto;
    padding: 12px 15px;
    font-size: 14px;
}

/* Helper Text */
small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 18px;
}



/* =====================================
   Registration Form – refreshed layout
===================================== */
body {
    background: linear-gradient(135deg, #e7f5e9 0%, #d4efdc 48%, #f4f8ed 100%);
    color: #24372b;
    padding: 28px 16px;
}

.registration-box {
    max-width: 500px;
    padding: 34px;
    border: 1px solid rgba(35, 122, 69, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(22, 75, 42, 0.13);
}

.form-brand {
    text-align: center;
    color: #237a45;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.registration-box h2 {
    margin-bottom: 8px;
    font-size: 25px;
}

.form-intro {
    text-align: center;
    color: #68786d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.registration-box form > label,
.input-group > label {
    margin-bottom: 7px;
    font-size: 14px;
}

.registration-box input,
.registration-box select {
    margin-bottom: 17px;
    background: #fff;
    border: 1px solid #d5dfd7;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.registration-box input:focus,
.registration-box select:focus {
    border-color: #237a45;
    box-shadow: 0 0 0 3px rgba(35, 122, 69, 0.11);
}

.registration-box small {
    margin-top: -11px;
    line-height: 1.45;
}

.password-box {
    margin-bottom: 17px;
}

.password-box .toggle-password {
    flex: 0 0 auto;
    width: auto;
    padding: 12px 14px;
    background: #edf6ef;
    color: #237a45;
    border: 1px solid #d4e7d8;
}

.password-box .toggle-password:hover {
    background: #dcefe0;
}

.input-group[hidden] {
    display: none !important;
}

.required-mark {
    color: #c0392b;
}

.submit-button {
    margin-top: 5px;
    background: linear-gradient(135deg, #237a45, #185c32);
    box-shadow: 0 5px 13px rgba(35, 122, 69, 0.18);
}

.submit-button:hover {
    background: #124b29;
    transform: translateY(-1px);
}

.form-message {
    min-height: 18px;
    margin: 12px 0 0;
    font-size: 13px;
    text-align: center;
}

.form-message.error {
    color: #b42318;
}

.form-message.success {
    color: #237a45;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #65746a;
}

.login-link a {
    color: #237a45;
    font-weight: 700;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.approval-note {
    margin-top: 16px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #f1f7f1;
    color: #607365;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 520px) {
    .registration-box {
        padding: 25px 20px;
    }

    .registration-box h2 {
        font-size: 22px;
    }
}


/* Password input and Show button: exact same row alignment */
.registration-box .password-box {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 0 0 17px;
}

.registration-box .password-box input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 12px;
    line-height: normal;
}

.registration-box .password-box .toggle-password {
    flex: 0 0 76px;
    width: 76px;
    height: 46px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    align-self: stretch;
}

