/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

body {
    line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

nav ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

/* change colours to suit your needs */
ins {
    background-color: #ff9;
    color: #000;
    text-decoration: none;
}

/* change colours to suit your needs */
mark {
    background-color: #ff9;
    color: #000;
    font-style: italic;
    font-weight: bold;
}

del {
    text-decoration: line-through;
}

abbr[title],
dfn[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* change border colour to suit your needs */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 1em 0;
    padding: 0;
}

input,
select {
    vertical-align: middle;
}

body {
    background: #f5f5f5 !important;
}


.percent_inc::before {
    content: "+";
}

.percent_dec::before {
    content: "";
}

.footer {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link {
    color: #e2e8f0;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #60a5fa;
    transform: translateY(-1px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
}

.social-link {
    color: #cbd5e1;
    font-size: 1.25rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    color: #60a5fa;
    transform: translateY(-1px) scale(1.03);
}

/* پشتیبانی بهتر از حالت راست‌به‌چپ */
html[dir="rtl"] .footer .row>div:nth-child(2) {
    text-align: start !important;
}

.header-top {
    justify-content: space-between;
}


/*modal style */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f0ad4e,#fcbd65 );
    padding: 20px;
    border: none;
    color: white;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0062cc;
    box-shadow: none;
}

.input-group-text {
    border: none;
    background: transparent;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    color: #666;
}

.input-group {
    position: relative;
}

.btn-login {
    padding: 12px 20px;
    background: linear-gradient(135deg, #0062cc, #0096ff);
    border: none;
    border-radius: 10px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 98, 204, 0.3);
}

.social-login {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #eee;
    background: white;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-social i {
    margin-right: 10px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #eee;
}

.divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #eee;
}

.divider span {
    background: white;
    padding: 0 10px;
    color: #666;
    font-size: 0.9rem;
}

.form-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.password-toggle {
    cursor: pointer;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* افکت لرزش */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.input-error {
    border: 2px solid red !important;
    animation: shake 0.3s;
}