@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --isu-green: #065f2f;
    --isu-green-hover: #054d25;
    --isu-light: #e8f3ec;

    --text-dark: #333333;
    --text-muted: #666666;

    --danger: #dc3545;
    --success: #198754;
    --warning: #c58a00;

    --input-border: #d9d9d9;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* =========================================================
   BODY
========================================================= */

body {
    background-color: #f5f8f5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.main-container {
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

/* =========================================================
   LEFT PANEL
========================================================= */

.logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid #fbdc00;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.brand-title {
    color: var(--isu-green);
    font-weight: 800;
    font-size: 26px;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
}

.system-title {
    color: var(--isu-green);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
}

.system-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.feature-item h5 {
    color: var(--isu-green);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.5;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: var(--isu-light);
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-right: 15px;

    color: var(--isu-green);
    font-size: 20px;
    flex-shrink: 0;
}

/* =========================================================
   SIGNUP CARD
========================================================= */

.signup-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);

    max-width: 550px;
    width: 100%;
}

/* =========================================================
   TOP ICON
========================================================= */

.top-icon {
    width: 70px;
    height: 70px;

    border-radius: 50%;
    background: var(--isu-light);

    display: flex;
    justify-content: center;
    align-items: center;

    color: var(--isu-green);
    font-size: 32px;
}

/* =========================================================
   FORM TITLE
========================================================= */

.form-title {
    color: var(--isu-green);
    font-weight: 700;
    font-size: 26px;
}

/* =========================================================
   ROLE ASSIGNMENT
========================================================= */

.role-label {
    cursor: pointer;
}

.role-card {
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;

    transition: all 0.2s ease-in-out;

    background: #ffffff;
    height: 100%;
}

.text-isu-green {
    color: var(--isu-green) !important;
}

.custom-radio {
    width: 18px;
    height: 18px;

    border: 2px solid #ccc;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 12px;

    transition: 0.2s;
}

.custom-radio::after {
    content: "";

    width: 8px;
    height: 8px;

    background: var(--isu-green);

    border-radius: 50%;

    opacity: 0;

    transition: 0.2s;
}

.peer:checked + .role-card {
    border-color: var(--isu-green);
    background: #f4fbf7;
}

.peer:checked + .role-card .custom-radio {
    border-color: var(--isu-green);
}

.peer:checked + .role-card .custom-radio::after {
    opacity: 1;
}

/* =========================================================
   ROLE ASSIGNMENT BOX
========================================================= */

.role-assignment-box {
    width: 100%;

    background-color: #f4fbf7;

    border: 1px solid #cce8d6;

    border-radius: 12px;

    padding: 20px;

    box-shadow: 0 4px 15px rgba(6, 95, 47, 0.03);
}

.border-success-subtle {
    border-color: #cce8d6 !important;
}

.role-badge {
    font-size: 11px;
    font-weight: 600;

    padding: 6px 12px;

    border-radius: 8px;

    min-width: 110px;

    text-align: left;

    display: flex;
    align-items: center;
}

.badge-super-admin {
    background-color: var(--isu-green);
    color: #ffffff;
    border: 1px solid var(--isu-green);
}

.badge-admin {
    background-color: #ffffff;
    color: var(--isu-green);
    border: 1px solid var(--isu-green);
}

.badge-viewer {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* =========================================================
   INPUT WRAPPER
========================================================= */

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

/* =========================================================
   REMOVE LEFT ICONS
========================================================= */

.input-icon-wrapper .left-icon,
.signup-card .left-icon,
.role-assignment-box .left-icon {
    display: none !important;
}

/* =========================================================
   ALL NORMAL INPUTS
========================================================= */

.signup-card input.form-control,
.signup-card input.custom-input,
.signup-card input.floating-input {
    width: 100%;

    height: 48px;

    border: 1px solid var(--input-border);

    border-radius: 11px;

    background: #ffffff;

    color: var(--text-dark);

    font-size: 14px;

    padding: 0 16px !important;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

/* =========================================================
   PLACEHOLDER
========================================================= */

.signup-card input::placeholder {
    color: #718096;
    opacity: 1;
}

/* =========================================================
   NORMAL INPUT FOCUS
========================================================= */

.signup-card input.form-control:focus,
.signup-card input.custom-input:focus,
.signup-card input.floating-input:focus {
    border-color: var(--isu-green) !important;

    box-shadow:
        0 0 0 2px rgba(6, 95, 47, 0.08);

    background: #ffffff;
}

/* =========================================================
   FLOATING FIELD
========================================================= */

.floating-field {
    position: relative;
    width: 100%;
}

.floating-input {
    display: block;
}

.floating-field label {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #718096;

    background: transparent;

    font-size: 14px;

    padding: 0 4px;

    pointer-events: none;

    transition:
        top 0.18s ease,
        transform 0.18s ease,
        color 0.18s ease,
        font-size 0.18s ease;
}

.floating-input:focus + label,
.floating-input:not(:placeholder-shown) + label {
    top: 0;

    transform: translateY(-50%);

    background: #ffffff;

    color: var(--isu-green);

    font-size: 11px;

    font-weight: 500;
}

/* =========================================================
   VALIDATION STATUS
========================================================= */

.validation-status {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 14px;

    pointer-events: none;

    z-index: 5;
}

.valid-status {
    color: var(--success) !important;
}

.invalid-status {
    color: var(--danger) !important;
}

/* =========================================================
   VALID INPUT
========================================================= */

.custom-input.is-valid,
.floating-input.is-valid {
    border-color: var(--success) !important;

    background: #ffffff !important;

    box-shadow: none !important;
}

/* =========================================================
   INVALID INPUT
========================================================= */

.custom-input.is-invalid,
.floating-input.is-invalid {
    border-color: var(--danger) !important;

    background: #ffffff !important;

    box-shadow: none !important;
}

/* =========================================================
   VALID FLOATING LABEL
========================================================= */

.floating-input.is-valid + label {
    color: var(--success);
    background: #ffffff;
}

/* =========================================================
   PASSWORD FIELDS
   FLOATING LABEL + EYE ICON INSIDE
   ========================================================= */

.password-field,
.confirm-password-field,
.recovery-password-field {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

/* Password inputs */
.password-field input,
.confirm-password-field input,
.recovery-password-field input {
    width: 100% !important;
    height: 48px !important;

    border: 1px solid var(--input-border) !important;
    border-radius: 11px !important;

    background: #ffffff !important;
    color: var(--text-dark);

    font-size: 14px;

    /* Space for the eye on the right */
    padding: 0 45px 0 16px !important;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;

    box-sizing: border-box;
}

/* Hide the native placeholder so the floating label is used */
.password-field input::placeholder,
.confirm-password-field input::placeholder,
.recovery-password-field input::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

/* =========================================================
   FLOATING PASSWORD LABEL
   ========================================================= */

.password-field label,
.confirm-password-field label,
.recovery-password-field label {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #718096;
    background: transparent;

    font-size: 14px;
    font-weight: 400;

    padding: 0 4px;

    pointer-events: none;

    z-index: 2;

    transition:
        top 0.18s ease,
        transform 0.18s ease,
        color 0.18s ease,
        font-size 0.18s ease,
        background-color 0.18s ease;
}

/* Move label to border when focused or filled */
.password-field input:focus + label,
.password-field input:not(:placeholder-shown) + label,
.confirm-password-field input:focus + label,
.confirm-password-field input:not(:placeholder-shown) + label,
.recovery-password-field input:focus + label,
.recovery-password-field input:not(:placeholder-shown) + label {
    top: 0;

    transform: translateY(-50%);

    background: #ffffff;

    color: var(--isu-green);

    font-size: 11px;
    font-weight: 500;
}

/* =========================================================
   PASSWORD FOCUS
   ========================================================= */

.password-field input:focus,
.confirm-password-field input:focus,
.recovery-password-field input:focus {
    border-color: var(--isu-green) !important;

    box-shadow:
        0 0 0 2px rgba(6, 95, 47, 0.08) !important;
}

/* =========================================================
   PASSWORD EYE ICON
   ========================================================= */

.password-toggle-icon {
    position: absolute !important;

    right: 14px !important;
    top: 50% !important;

    transform: translateY(-50%) !important;

    width: 24px !important;
    height: 24px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 0 !important;

    color: #8a99a8;

    font-size: 17px;

    cursor: pointer;

    pointer-events: auto;

    z-index: 20;

    background: transparent;

    line-height: 1;
}

.password-toggle-icon:hover {
    color: var(--isu-green);
}

/* =========================================================
   VALID PASSWORD
   ========================================================= */

.password-field input.is-valid,
.confirm-password-field input.is-valid,
.recovery-password-field input.is-valid {
    border-color: var(--success) !important;

    background: #edf5ff !important;

    box-shadow: none !important;
}

/* Keep floating label readable when valid */
.password-field input.is-valid + label,
.confirm-password-field input.is-valid + label,
.recovery-password-field input.is-valid + label {
    color: var(--success);
    background: #edf5ff;
}

/* =========================================================
   INVALID PASSWORD
   ========================================================= */

.password-field input.is-invalid,
.confirm-password-field input.is-invalid,
.recovery-password-field input.is-invalid {
    border-color: var(--danger) !important;

    background: #ffffff !important;

    box-shadow: none !important;
}

/* Keep floating label readable when invalid */
.password-field input.is-invalid + label,
.confirm-password-field input.is-invalid + label,
.recovery-password-field input.is-invalid + label {
    color: var(--danger);
    background: #ffffff;
}

/* =========================================================
   PASSWORD MESSAGE
   ========================================================= */

.password-message {
    display: block;

    margin-top: 6px;
    margin-bottom: 8px;

    padding-left: 2px;

    font-size: 12px;

    line-height: 1.4;

    font-weight: 500;
}

.password-message.d-none {
    display: none !important;
}

.password-message.text-danger {
    color: var(--danger) !important;
}

.password-message.text-warning {
    color: var(--warning) !important;
}

.password-message.text-success {
    color: var(--success) !important;
}

/* =========================================================
   REMOVE OLD LEFT PASSWORD ICONS
   ========================================================= */

.password-field > .left-icon,
.confirm-password-field > .left-icon,
.recovery-password-field > .left-icon {
    display: none !important;
}

/* =========================================================
   RECOVERY PASSWORD
   ========================================================= */

.recovery-password-field:last-child {
    margin-bottom: 0;
}

/* =========================================================
   PASSWORD AUTOFILL
   ========================================================= */

.signup-card .password-field input:-webkit-autofill,
.signup-card .confirm-password-field input:-webkit-autofill,
.signup-card .recovery-password-field input:-webkit-autofill,
.signup-card .password-field input:-webkit-autofill:hover,
.signup-card .confirm-password-field input:-webkit-autofill:hover,
.signup-card .recovery-password-field input:-webkit-autofill:hover,
.signup-card .password-field input:-webkit-autofill:focus,
.signup-card .confirm-password-field input:-webkit-autofill:focus,
.signup-card .recovery-password-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-dark);

    -webkit-box-shadow:
        0 0 0 1000px #edf5ff inset !important;

    transition:
        background-color 5000s ease-in-out 0s;
}

/* =========================================================
   PASSWORD INPUT AUTOFILL
========================================================= */

.signup-card input:-webkit-autofill,
.signup-card input:-webkit-autofill:hover,
.signup-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-dark);

    -webkit-box-shadow:
        0 0 0 1000px #edf5ff inset !important;

    transition:
        background-color 5000s ease-in-out 0s;
}

/* =========================================================
   FORM SPACING
========================================================= */

.signup-card .input-icon-wrapper {
    margin-bottom: 0;
}

.signup-card .mb-3 {
    margin-bottom: 14px !important;
}

.signup-card .row {
    --bs-gutter-x: 14px;
}

/* =========================================================
   BUTTON
========================================================= */

.submit-btn {
    background: var(--isu-green);

    border: none;

    border-radius: 11px;

    height: 50px;

    font-size: 16px;

    font-weight: 600;

    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--isu-green-hover);

    transform: translateY(-2px);
}

/* =========================================================
   FOOTER
========================================================= */

.form-footer a {
    color: var(--isu-green);

    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   REMOVE ANY OLD LEFT PASSWORD ICON
========================================================= */

.password-field > .left-icon,
.confirm-password-field > .left-icon,
.recovery-password-field > .left-icon {
    display: none !important;
}


/* =========================================================
   PASSWORD FLOATING LABEL - FINAL OVERRIDES
   ========================================================= */

.signup-card .password-field input.floating-input,
.signup-card .confirm-password-field input.floating-input,
.signup-card .recovery-password-field input.floating-input {
    padding: 0 45px 0 16px !important;
}

.signup-card .password-field input.floating-input:focus,
.signup-card .confirm-password-field input.floating-input:focus,
.signup-card .recovery-password-field input.floating-input:focus {
    border-color: var(--isu-green) !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .signup-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {

    .main-container {
        padding: 15px 5px;
    }

    .signup-card {
        padding: 24px 20px;

        border-radius: 18px;
    }

    .form-title {
        font-size: 23px;
    }

    .top-icon {
        width: 60px;
        height: 60px;

        font-size: 27px;
    }

    .role-assignment-box {
        padding: 16px;
    }

    .role-badge {
        min-width: 95px;
        font-size: 10px;
    }

    .signup-card input.form-control,
    .signup-card input.custom-input,
    .signup-card input.floating-input {
        height: 48px;
    }

    .signup-card .row {
        --bs-gutter-x: 10px;
    }
}