/**
 * RBAC Ön Yüz Giriş Ekranı ve Bileşen Stilleri
 */

.rbac-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 480px;
}

.rbac-login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 440px;
    padding: 36px 32px;
    box-sizing: border-box;
}

.rbac-login-header {
    text-align: center;
    margin-bottom: 28px;
}

.rbac-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    margin-bottom: 16px;
}

.rbac-login-header h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.rbac-login-header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Uyarılar */
.rbac-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.rbac-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.rbac-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.rbac-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Form Grupları */
.rbac-form-group {
    margin-bottom: 18px;
}

.rbac-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.rbac-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.rbac-label-row label {
    margin-bottom: 0;
}

.rbac-forgot-link {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.rbac-forgot-link:hover {
    text-decoration: underline;
}

.rbac-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rbac-field-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.rbac-input-icon-wrap input {
    width: 100% !important;
    padding: 12px 42px 12px 42px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.rbac-input-icon-wrap input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.rbac-pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbac-pwd-toggle:hover {
    color: #334155;
}

.rbac-form-options {
    margin-bottom: 22px;
}

.rbac-checkbox-container {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

.rbac-checkbox-container input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.rbac-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25);
}

.rbac-btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 10px -1px rgba(37, 99, 235, 0.35);
}

.rbac-btn-secondary {
    padding: 10px 16px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.rbac-btn-secondary:hover {
    background: #e2e8f0;
}

.rbac-forgot-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.rbac-forgot-box h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #0f172a;
}

.rbac-forgot-box p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
}

.rbac-forgot-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.rbac-login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

/* Spinner */
.rbac-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: rbacSpin 0.7s linear infinite;
    margin-left: 8px;
}

@keyframes rbacSpin {
    to { transform: rotate(360deg); }
}

/* KULLANICI ÇUBUĞU (USER BAR) */
.rbac-user-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.rbac-user-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rbac-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.rbac-user-meta {
    display: flex;
    flex-direction: column;
}

.rbac-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.rbac-user-role {
    font-size: 12px;
    color: #64748b;
}

.rbac-user-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rbac-btn-dropdown {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.rbac-dropdown {
    position: relative;
    display: inline-block;
}

.rbac-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 50;
    overflow: hidden;
}

.rbac-dropdown:hover .rbac-dropdown-menu {
    display: block;
}

.rbac-dropdown-item {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.rbac-dropdown-item:hover {
    background: #eff6ff;
    color: #2563eb;
}

.rbac-btn-logout-small {
    color: #ef4444;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
}

.rbac-btn-logout-small:hover {
    text-decoration: underline;
}

.rbac-btn-admin-link {
    color: #475569;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    background: #f1f5f9;
    border-radius: 6px;
}

.rbac-inline-denied {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.rbac-inline-denied h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #991c1c;
}

.rbac-inline-denied p {
    margin: 0;
    font-size: 13px;
    color: #7f1d1d;
}
