/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #308E87;
    --primary-dark: #277971;
    --secondary: #F39159;
    --tertiary: #EA9200;
    --light-bg: #F8FBFA;
    --white: #FFFFFF;
    --text-dark: #2D3748;
    --text-medium: #4A5568;
    --text-light: #718096;
    --border-color: #E2E8F0;
    --input-bg: #F7FAFC;
    --error: #E53E3E;
    --warning: #F59E0B;
    --success: #38A169;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Arial', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
}

/* Register Page Layout */
.register-container {
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

/* Updated register-left styles */
.register-left {
    flex: 0.4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    /* Softer gradient that works well with logos */
    background: linear-gradient(135deg, #f8fbfa 0%, #e0f2f1 40%, #b2dfdb 100%);
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Updated pattern styling */
.pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--primary) 0, var(--primary) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 75% 15%, var(--primary) 0, var(--primary) 3px, transparent 3px, transparent 100%),
        radial-gradient(circle at 40% 80%, var(--primary) 0, var(--primary) 2px, transparent 2px, transparent 100%),
        radial-gradient(circle at 80% 60%, var(--primary) 0, var(--primary) 4px, transparent 4px, transparent 100%);
    background-size: 150px 150px, 200px 200px, 120px 120px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px, 60px 100px;
}

/* Add circular line patterns */
.register-left::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0.06;
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 40%, var(--primary) 40%, var(--primary) 41%, transparent 41%, transparent 100%),
        radial-gradient(circle at 85% 15%, transparent 0%, transparent 25%, var(--primary) 25%, var(--primary) 26%, transparent 26%, transparent 100%),
        radial-gradient(circle at 15% 85%, transparent 0%, transparent 15%, var(--primary) 15%, var(--primary) 16%, transparent 16%, transparent 100%);
    background-size: 400px 400px, 200px 200px, 150px 150px;
}

/* Improved logo container */
.logo-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 400px;
}

/* Content section styling */
.intro-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    margin: 0 auto;
}

.govt-logo-wrapper {
    margin-bottom: 2rem;
}

.inline-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.govt-logo {
    max-width: 110px;
    height: auto;
}

.sipo-logo {
    max-width: 140px;
    height: auto;
}

h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
}

/* Right side styling */
.register-right {
    flex: 0.6;
    padding: 3rem 4rem;
    background: var(--white);
    position: relative;
    overflow-y: auto;
}

/* Background patterns for right side */
.register-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(243, 145, 89, 0.05) 0%, transparent 15%),
        radial-gradient(circle at 10% 90%, rgba(243, 145, 89, 0.05) 0%, transparent 15%);
    z-index: 0;
}

h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
}

/* Form Styling */
.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.25rem;
}

label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--error);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: var(--transition);
    height: auto;
    text-overflow: ellipsis;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(48, 142, 135, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234A5568' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Select Loading Styles */
.select-wrapper {
    position: relative;
}

.select-loading {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    z-index: 10;
}

/* Add more space for the loading spinner */
.select-wrapper select.form-control {
    padding-right: 3.5rem;
}

/* Password Field */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}

.eye-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    transition: var(--transition);
}

.eye-icon.visible {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z'/%3E%3Cpath d='M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z'/%3E%3Cpath d='M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z'/%3E%3Cpath d='M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z'/%3E%3Cpath d='M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z'/%3E%3C/svg%3E");
}

.error {
    color: var(--error);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    position: relative;
}

.alert::before {
    content: '';
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.alert-success {
    background-color: rgba(56, 161, 105, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-.997-6l7.07-7.071-1.414-1.414-5.656 5.657-2.829-2.829-1.414 1.414L11.003 16z' fill='rgba(56, 161, 105, 1)'/%3E%3C/svg%3E");
}

.alert-danger {
    background-color: rgba(229, 62, 62, 0.1);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.alert-danger::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm0-8v6h2V7h-2z' fill='rgba(229, 62, 62, 1)'/%3E%3C/svg%3E");
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm0-8v6h2V7h-2z' fill='rgba(245, 158, 11, 1)'/%3E%3C/svg%3E");
}

/* Button */
.form-action {
    margin-top: 1.5rem;
}

.btn-register {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(48, 142, 135, 0.2);
}

.btn-register:hover {
    background: linear-gradient(to right, var(--primary-dark), #246b66);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(48, 142, 135, 0.25);
}

.btn-register:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(48, 142, 135, 0.15);
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.login-link a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-left: 0.25rem;
}

.login-link a:hover {
    color: var(--tertiary);
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .register-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        max-height: none;
        overflow-y: auto;
    }
    
    .register-left {
        padding: 2rem;
        flex: none;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo-container {
        width: 100%;
        max-width: 480px;
    }
    
    .govt-logo-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .inline-logos {
        justify-content: center;
    }
    
    h1, .tagline {
        text-align: center;
    }
    
    .benefits-section {
        margin-top: 1.5rem;
    }
    
    .register-right {
        flex: none;
        padding: 2.5rem 2rem;
    }
    
    form {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        margin-bottom: 1.5rem;
    }
    
    .register-right {
        padding: 2rem 1.5rem;
    }
    
    .register-left {
        padding: 1.5rem;
    }
    
    .govt-logo {
        max-width: 90px;
    }
    
    .sipo-logo {
        max-width: 120px;
    }
    
    .benefits-list li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

/* Captcha Styles */
.captcha-group {
    margin-bottom: 1.5rem;
}

.captcha-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.captcha-image {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 45px;
}

.captcha-image img {
    height: 100%;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.btn-refresh-captcha {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh-captcha:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-refresh-captcha i {
    font-size: 0.9rem;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    flex-grow: 1;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
}

.eye-icon.visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E");
}

.password-strength {
    margin-top: 8px;
}

.strength-meter {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 8px;
}

.strength-meter-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.strength-meter-fill.weak {
    background-color: #ff4d4d;
}

.strength-meter-fill.medium {
    background-color: #ffa500;
}

.strength-meter-fill.strong {
    background-color: #00cc44;
}

.strength-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.password-requirements {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
    font-size: 12px;
    color: #666;
}

.password-requirements li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.password-requirements li i {
    margin-right: 5px;
    font-size: 10px;
}

.password-requirements li.met {
    color: #00cc44;
}

.password-requirements li:not(.met) {
    color: #ff4d4d;
}

.fa-check {
    color: #00cc44;
}

.fa-times {
    color: #ff4d4d;
}

@media (max-width: 640px) {
    .captcha-image {
        height: 40px;
    }
    
    .btn-refresh-captcha {
        width: 32px;
        height: 32px;
    }
    
    .remember-forgot-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .forgot-password-link {
        align-self: flex-end;
    }
}

/* Format Hint Styles */
.input-format-hint {
    margin-bottom: 0.5rem;
}

.input-format-hint small {
    color: var(--text-light);
    font-size: 0.85rem;
    display: block;
}

/* Readonly input styling */
input[readonly] {
    background-color: var(--light-bg);
    cursor: not-allowed;
    opacity: 0.8;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Remember Me & Forgot Password */
.remember-forgot-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-medium);
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    position: relative;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.remember-text {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.forgot-password-link {
    color: var(--secondary);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password-link:hover {
    color: var(--tertiary);
    text-decoration: underline;
}

/* Custom styles for the radio button group */
.radio-group {
    display: flex;
    gap: 32px;
    margin-top: 12px;
}

/* The main label for each radio button option */
.radio-label {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding-left: 28px; /* Space for the custom radio button */
    font-size: 14px;
    color: #495057;
    -webkit-user-select: none; /* Prevents text selection on click */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create the custom radio button's outer circle */
.custom-radio {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ced4da; /* Default border color */
    border-radius: 50%;
    transition: border-color 0.2s ease-in-out;
}

/* Change border color on hover for better UX */
.radio-label:hover input[type="radio"] ~ .custom-radio {
    border-color: #308E87;
}

/* When the radio is checked, change the border color */
.radio-label input[type="radio"]:checked ~ .custom-radio {
    border-color: #308E87;
}

/* Create the inner indicator (the dot) */
.custom-radio::after {
    content: "";
    position: absolute;
    display: none; /* Hidden by default */
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #308E87; 
    transform: translate(-50%, -50%);
}

/* Show the inner indicator when the radio is checked */
.radio-label input[type="radio"]:checked ~ .custom-radio::after {
    display: block;
}