/* Demo-only addition to the super-admin login page (assets_super/css/auth.css):
   the demo account autofill button. Loaded by resources/views/central/login.blade.php
   only, so assets_super/css/auth.css stays identical to the main product. */

.demo-credentials {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1.5px dashed var(--color-primary);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(1, 138, 0, 0.05) 0%, rgba(32, 131, 117, 0.08) 100%);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

[dir="rtl"] .demo-credentials {
    text-align: right;
}

.demo-credentials:hover {
    background: linear-gradient(135deg, rgba(1, 138, 0, 0.1) 0%, rgba(32, 131, 117, 0.12) 100%);
    box-shadow: 0 4px 14px rgba(1, 138, 0, 0.18);
}

.demo-credentials:active {
    transform: scale(0.985);
}

.demo-credentials-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(1, 138, 0, 0.35);
    transition: transform 0.2s ease;
}

.demo-credentials:hover .demo-credentials-icon {
    transform: rotate(-8deg) scale(1.05);
}

.demo-credentials-icon svg {
    width: 19px;
    height: 19px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.demo-credentials-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.demo-credentials-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.demo-credentials-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-credentials-value b {
    color: var(--color-dark);
    font-weight: 600;
}

.demo-credentials-hint {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.demo-credentials:hover .demo-credentials-hint {
    opacity: 1;
    transform: translateX(3px);
}

[dir="rtl"] .demo-credentials-hint svg {
    transform: scaleX(-1);
}

.demo-credentials-hint svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.demo-credentials.filled {
    border-style: solid;
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
}

.demo-credentials.filled .demo-credentials-icon {
    background: #16a34a;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}

.demo-credentials.filled .demo-credentials-title,
.demo-credentials.filled .demo-credentials-hint {
    color: #16a34a;
}

