/* Registration Form Styles */
body {
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
}

/* Add a header to the registration form */
.container::before {
    content: "Create an Account";
    display: block;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Add some branding elements */
.container::after {
    content: "Barangay Uwisan Management System";
    display: block;
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}

h4 {
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #2563EB;
    padding-bottom: 10px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #6c757d;
    font-style: normal;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

select.form-control {
    cursor: pointer;
    background-color: #fff;
}

select.form-control option {
    padding: 10px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    height: auto;
}

.form-btn {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.btn-primary {
    background-color: #2563EB;
    border: none;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.text-center {
    text-align: center;
}

.text-center p {
    margin-top: 20px;
    margin-bottom: 10px;
}

.text-center a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

.text-center a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Password strength indicator */
.password-strength-meter {
    height: 5px;
    width: 100%;
    background-color: #ddd;
    margin-top: 8px;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-meter-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.strength-weak {
    width: 25%;
    background-color: #dc3545;
}

.strength-medium {
    width: 50%;
    background-color: #ffc107;
}

.strength-strong {
    width: 75%;
    background-color: #28a745;
}

.strength-very-strong {
    width: 100%;
    background-color: #20c997;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 5px;
    color: #6c757d;
}

/* Password visibility toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 16px;
    z-index: 10;
}

.password-toggle:hover {
    color: #2563EB;
}

/* Email validation icon */
.email-validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 10;
}

.email-valid {
    color: #28a745;
}

.email-invalid {
    color: #dc3545;
}

/* Password requirements list */
.password-requirements {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

.password-requirements ul {
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 0;
}

.requirement-met {
    color: #28a745;
}

.requirement-unmet {
    color: #6c757d;
}

/* Input validation styles */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

/* Loading state for submit button */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        max-width: 100%;
        padding: 20px;
        margin: 10px 0;
        max-height: none;
    }
    
    .container::before {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    h4 {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .form-control {
        height: 45px;
        font-size: 14px;
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 10px;
    }
    
    .row {
        margin: 0;
    }
    
    .col-md-6 {
        padding: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .container::before {
        font-size: 20px;
    }
    
    .form-control {
        height: 40px;
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Animation for form elements */
.form-group {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus effects */
.form-group.focused .form-control {
    border-color: #2563EB;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Custom scrollbar for container */
.container::-webkit-scrollbar {
    width: 6px;
}

.container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.container::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 3px;
}

.container::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    margin-left: 0.5rem;
}

.form-check-label a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}