:root {
    --primary: #1558b0;
    --primary-hover: #0e4690;
    --primary-light: #eaf1fc;
    --bg: #f8f9fa;
    --card: #ffffff;
    --border: #dce3ea;
    --text: #212529;
    --shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

button,
input,
textarea,
select {
    border-radius: 8px;
    transition: border-color .2s, box-shadow .25s, background .2s, transform .15s;

}

input,
textarea,
select {
    border: 1px solid var(--border);
    padding: 10px;
    background: white;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 88, 176, .18);
    animation: focusGrow .5s ease-out;
}

@keyframes focusGrow {
    from {
        box-shadow: 0 0 0 0 rgba(21, 88, 176, .35);
    }

    to {
        box-shadow: 0 0 0 4px rgba(21, 88, 176, .18);
    }
}

button {
    border: none;
    background: linear-gradient(135deg, var(--primary), #1a73e8);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: white;
    padding: 10px 18px;
    box-shadow: 0 2px 8px rgba(21, 88, 176, .25);

}

button:hover {
    background-position: 100% 50%;
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 88, 176, .4);
}

button:active {
    transform: scale(.97);
    box-shadow: 0 2px 6px rgba(21, 88, 176, .3);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    transition: border-color .3s;
}

button:disabled {
    background: #dcdcde;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

button:disabled:hover {
    background: #dcdcde;
    transform: none;
    box-shadow: none;
}

label {
    font-size: 22px;
    transition: color .2s;
}

label:hover {
    color: var(--primary);
}

/* درخشش ملایم دور کارت‌ها هنگام هاور (در صورت استفاده از var(--shadow)) */
.card,
[class*="card"] {
    transition: box-shadow .25s ease, transform .25s ease;
}

.card:hover,
[class*="card"]:hover {
    box-shadow: 0 8px 22px rgba(21, 88, 176, .18);
    transform: translateY(-2px);
}

/* انیمیشن ورود برای فیدبک کوتاه روی دکمه‌ها */
@keyframes ripplePulse {
    from {
        box-shadow: 0 0 0 0 rgba(21, 88, 176, .45);
    }

    to {
        box-shadow: 0 0 0 14px rgba(21, 88, 176, 0);
    }
}

button:focus {
    animation: ripplePulse .6s ease-out;
}


body {
    transition: opacity 0.35s ease;
}

body.fade-out {
    opacity: 0;
}