/* ==========================================================================
   Maskan Direct Native Auth & Fast KYC Styles
   ========================================================================== */

.maskan-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    direction: rtl;
    font-family: inherit;
}

.maskan-auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
}

.maskan-auth-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.maskan-auth-close-btn {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 10;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.maskan-auth-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.maskan-auth-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
    border: 1px solid #e2e8f0;
    overflow-y: auto;
    max-height: 88vh;
    padding: 30px 28px;
    box-sizing: border-box;
}

/* Header */
.maskan-auth-header {
    text-align: center;
    margin-bottom: 22px;
}
.maskan-auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.maskan-auth-logo-icon {
    font-size: 28px;
}
.maskan-auth-brand-name {
    font-size: 26px;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.5px;
}
.maskan-auth-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Tabs */
.maskan-auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 22px;
}
.maskan-auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.maskan-auth-tab.active {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Role Selector */
.maskan-role-selector-wrap {
    margin-bottom: 18px;
}
.maskan-section-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.maskan-role-cards {
    display: flex;
    gap: 12px;
}
.maskan-role-card {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    position: relative;
    user-select: none;
}
.maskan-role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.maskan-role-card.active {
    border-color: #059669;
    background: #ecfdf5;
}
.maskan-role-card-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}
.maskan-role-card-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.maskan-role-card-desc {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* Inputs */
.maskan-input-group {
    margin-bottom: 16px;
    text-align: right;
}
.maskan-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.maskan-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.maskan-input-icon {
    position: absolute;
    right: 12px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}
.maskan-input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #f8fafc;
}
.maskan-input-wrapper input:focus {
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.maskan-toggle-pwd {
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.6;
    padding: 4px;
}
.maskan-toggle-pwd:hover {
    opacity: 1;
}

/* Form Actions */
.maskan-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 12px;
    color: #64748b;
}
.maskan-remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Primary Button */
.maskan-auth-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.maskan-auth-btn-primary:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}
.maskan-auth-btn-secondary {
    width: 100%;
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.maskan-auth-btn-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Alerts */
.maskan-auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.5;
}
.maskan-auth-alert.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.maskan-auth-alert.success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

/* Fast KYC View */
.maskan-kyc-banner-header {
    text-align: center;
    margin-bottom: 20px;
}
.maskan-kyc-badge-icon {
    font-size: 34px;
    margin-bottom: 6px;
}
.maskan-kyc-banner-header h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
}
.maskan-kyc-banner-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.maskan-input-grid {
    display: flex;
    gap: 12px;
}
.maskan-input-grid .maskan-input-group {
    flex: 1;
}
.maskan-input-grid input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    box-sizing: border-box;
}

/* Upload cards */
.maskan-upload-section {
    margin-bottom: 20px;
}
.maskan-upload-grid {
    display: flex;
    gap: 12px;
}
.maskan-upload-card {
    flex: 1;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.maskan-upload-card:hover {
    border-color: #059669;
    background: #ecfdf5;
}
.maskan-upload-placeholder span {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}
.maskan-upload-placeholder small {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}
.maskan-upload-sub {
    font-size: 10px;
    color: #059669;
    display: block;
    margin-top: 4px;
}
.maskan-preview-wrap img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Desk Help Banner */
.maskan-auth-desk-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 14px;
    margin-top: 24px;
    border: 1px solid #e2e8f0;
}
.maskan-desk-banner-icon {
    font-size: 22px;
}
.maskan-desk-banner-text {
    flex: 1;
    text-align: right;
}
.maskan-desk-banner-text strong {
    display: block;
    font-size: 12px;
    color: #0f172a;
}
.maskan-desk-banner-text small {
    display: block;
    font-size: 11px;
    color: #64748b;
}
.maskan-auth-chat-trigger-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.maskan-auth-chat-trigger-btn:hover {
    background: #059669;
}
