﻿
::part(control) {
    --dialog-padding: 4px !important;
    --dialog-width: auto !important;
    --dialog-height: auto !important;
}

h1, h2, h3, h4, h5, h6, div, header, .header, .header-gutters {
    color: var(--neutral-foreground-rest);
    background: var(--neutral-layer-1);
}

 header, .header, .header-gutters {
    background-color: darkorange !important;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%; /* استخدام min-height أفضل للشاشات الصغيرة */
    padding: 1rem;
    box-sizing: border-box;
}

.login-card {
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 2rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

.login-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

FluentButton {
    width: 100%;
}

/* Media query للشاشات الصغيرة */
@media (max-width: 500px) {
    .login-card {
        padding: 1.5rem 1rem 2rem;
        border-radius: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }
}


.cards-grid {
    display: grid;
    gap: 16px; /* التباعد بين البطاقات */
    padding: 0px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* responsive */
}

/* الهاتف الصغير */
@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr; /* بطاقة واحدة بالصف */
    }
}

/* التابلت */
@media (min-width: 601px) and (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); /* بطاقتان بالصف */
    }
}

/* الكمبيوتر */
@media (min-width: 901px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 بطاقات بالصف */
    }
}

/* إذا تريد 4 بطاقات على شاشات أكبر جدًا */
@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

