

/* Validation message styling */
.validation-message {
    font-size: 12px;
    padding: 5px 0;
    margin-top: 5px;
    min-height: 0px; /* Fixed height to prevent layout shift */
}

.validation-message i {
    margin-right: 5px;
}

.validation-message .small {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
    display: block;
}

/* Color classes for validation messages */
.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* Toggle password visibility */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 2;
}

.toggle-password:hover {
    color: #495057;
}

/* Alert styling */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: block;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Field error styling */
.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

input.error, select.error {
    border-color: #dc3545 !important;
}

/* Ensure form elements have consistent height */
.form-group input,
.form-group select {
    height: 45px;
}

/* Fix for select padding */
.form-select.ps-5 {
    padding-left: 45px !important;
}

/* Regular form groups (without validation wrapper) */
#newOrgSection .form-group:not(:has(+ .validation-message)),
#existingOrgSection .form-group:not(:has(+ .validation-message)) {
    margin-bottom: 15px;
}

.checkbox-label {
    font-size: 13px;
    margin-left: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #e8eef3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 10px;
}

.auth-logo h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #b8860b;
    letter-spacing: 2px;
    margin: 0;
}

.auth-logo h1 span {
    color: #d4a843;
}

.auth-title {
    text-align: center;
    margin-bottom: 5px;
}

.auth-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.auth-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    outline: none;
    border-color: #d4a843;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-group input.is-invalid {
    border-color: #dc3545;
}

.form-group .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 1rem;
}

.form-group .toggle-password:hover {
    color: #666;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #c4903d 0%, #a67c32 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-auth:hover {
    background: linear-gradient(135deg, #a67c32 0%, #8b6914 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(166, 124, 50, 0.3);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.auth-link a {
    color: #b8860b;
    text-decoration: none;
    font-weight: 500;
}

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

.auth-footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.8rem;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.invalid-feedback {
    display: block;
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 5px;
    padding-left: 5px;
}
.form-group-checkbox {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin: 0 8px 0 0;
}