/**
 * Organization Authentication Forms CSS
 * Used by: signup.html, login.html, password reset pages
 */

/* ========================================
   BASE STYLES
   ======================================== */
.org-auth-container {
    min-height: 100vh;
    background: #FCFCFD;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    direction: rtl;
}

.org-auth-wrapper {
    max-width: 42rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.org-auth-wrapper.login {
    max-width: 28rem;
}

/* ========================================
   HEADER SECTION
   ======================================== */
.org-auth-header {
    text-align: center;
}

.org-auth-icon {
    margin: 0 auto;
    height: 3rem;
    width: 3rem;
    background: #4F9CF9;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.org-auth-icon i {
    color: white;
    font-size: 1.25rem;
}

.org-auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.org-auth-subtitle {
    color: #64748B;
    margin: 0;
}

/* ========================================
   FORM CARD
   ======================================== */
.org-auth-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.org-auth-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

.org-auth-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.org-auth-form.login {
    gap: 1.5rem;
}

/* ========================================
   FORM SECTIONS
   ======================================== */
.org-auth-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.org-auth-section-header {
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 1rem;
}

.org-auth-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.org-auth-section-title i {
    color: #4F9CF9;
}

.org-auth-section-description {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
}

/* ========================================
   FORM GRID
   ======================================== */
.org-auth-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .org-auth-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   FORM GROUPS
   ======================================== */
.org-auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.org-auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.org-auth-label .required {
    color: #DC2626;
}

/* ========================================
   FORM INPUTS
   ======================================== */
.org-auth-form input[type="text"],
.org-auth-form input[type="email"],
.org-auth-form input[type="password"],
.org-auth-form input[type="date"],
.org-auth-form input[type="file"],
.org-auth-form textarea,
.org-auth-form select,
.org-auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #ffffff;
    transition: all 0.15s ease;
    color: #374151;
    font-family: inherit;
}

.org-auth-form input[type="text"]:focus,
.org-auth-form input[type="email"]:focus,
.org-auth-form input[type="password"]:focus,
.org-auth-form input[type="date"]:focus,
.org-auth-form textarea:focus,
.org-auth-form select:focus,
.org-auth-input:focus {
    border-color: #4F9CF9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.1);
    background: #ffffff;
}

.org-auth-form input[type="text"]:hover,
.org-auth-form input[type="email"]:hover,
.org-auth-form input[type="password"]:hover,
.org-auth-form input[type="date"]:hover,
.org-auth-form textarea:hover,
.org-auth-form select:hover,
.org-auth-input:hover {
    border-color: #9CA3AF;
}

/* Select field styling */
.org-auth-form select {
    background-color: #ffffff;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* File input styling */
.org-auth-form input[type="file"] {
    padding: 0.5rem 1rem;
    background-color: #F9FAFB;
    border: 1px dashed #D1D5DB;
    cursor: pointer;
}

.org-auth-form input[type="file"]:hover {
    border-color: #4F9CF9;
    background-color: #EFF6FF;
}

/* Date input styling */
.org-auth-form input[type="date"] {
    background-color: #ffffff;
}

/* ========================================
   ERROR MESSAGES
   ======================================== */
.org-auth-error {
    font-size: 0.875rem;
    color: #DC2626;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.org-auth-error i {
    font-size: 0.75rem;
}

/* ========================================
   HELP TEXT
   ======================================== */
.org-auth-help {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.25rem;
}

/* ========================================
   CITIES FIELD
   ======================================== */
.org-auth-cities-field {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.org-auth-cities-field.show {
    display: flex !important;
}

.org-auth-cities-container {
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    background: #F9FAFB;
    max-height: 12rem;
    overflow-y: auto;
    padding: 1rem;
    transition: all 0.2s;
}

.org-auth-cities-container:hover {
    border-color: #4F9CF9;
    background-color: #EFF6FF;
}

.org-auth-cities-loading {
    text-align: center;
    padding: 1rem;
    color: #64748B;
}

.org-auth-cities-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ========================================
   CITY CHECKBOX
   ======================================== */
.org-auth-city-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin: 0.25rem 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.org-auth-city-checkbox:hover {
    background-color: #F3F4F6;
    border-color: #E5E7EB;
}

.org-auth-city-checkbox input[type="checkbox"] {
    margin-left: 0.75rem;
    transform: scale(1.1);
    accent-color: #4F9CF9;
}

.org-auth-city-checkbox label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* ========================================
   BUTTONS
   ======================================== */
.org-auth-btn {
    background: #4F9CF9;
    color: white;
    border: 1px solid #4F9CF9;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    width: 100%;
}

.org-auth-btn:hover {
    background: #3B82F6;
    border-color: #3B82F6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.org-auth-btn:focus {
    outline: 2px solid #4F9CF9;
    outline-offset: 2px;
}

.org-auth-btn i {
    margin-right: 0.5rem;
}

/* ========================================
   LINKS
   ======================================== */
.org-auth-link {
    font-size: 0.875rem;
    color: #2563EB;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.org-auth-link:hover {
    color: #1D4ED8;
    text-decoration: none;
}

.org-auth-link-container {
    display: flex;
    justify-content: flex-end;
}

.org-auth-link-center {
    text-align: center;
    margin-top: 1.5rem;
}

/* ========================================
   MESSAGES DISPLAY
   ======================================== */
.org-auth-messages {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.org-auth-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.org-auth-alert-success {
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.org-auth-alert-success i {
    color: #16A34A;
}

.org-auth-alert-error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.org-auth-alert-error i {
    color: #DC2626;
}

.org-auth-alert-warning {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.org-auth-alert-warning i {
    color: #D97706;
}

.org-auth-alert-info {
    background: #DBEAFE;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.org-auth-alert-info i {
    color: #2563EB;
}

.org-auth-link-center p {
    color: #64748B;
    margin: 0;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.org-auth-spinner {
    animation: org-auth-spin 1s linear infinite;
}

@keyframes org-auth-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   INFO NOTE
   ======================================== */
.org-auth-info-note {
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 0.5rem;
    padding: 1rem;
}

.org-auth-info-note-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.org-auth-info-note i {
    color: #2563EB;
    margin-top: 0.125rem;
}

.org-auth-info-note h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E40AF;
    margin-bottom: 0.25rem;
}

.org-auth-info-note p {
    font-size: 0.875rem;
    color: #1D4ED8;
    margin: 0;
}

/* ========================================
   FORM SUBMIT SECTION
   ======================================== */
.org-auth-submit-section {
    padding-top: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .org-auth-container {
        padding: 2rem 1rem;
    }

    .org-auth-card {
        padding: 1.5rem;
    }

    .org-auth-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .org-auth-container {
        padding: 1.5rem 1rem;
    }

    .org-auth-card {
        padding: 1.25rem;
    }

    .org-auth-title {
        font-size: 1.5rem;
    }
}

