@import url(fontiran.css); /* لینک فایلی که وظیفه بارگذاری فونت ها را برعهده دارد */

:root {
    --c-bg: #ffffff;
    --c-surface: #f2f4f7;
    --c-dark: #0b0f14;
    --c-accent: #6c8cff;
    --c-accent-2: #8b7cff;
    --c-mint: #55d6be;
    --c-text: #1a2230;
    --c-text-muted: #9aa4b2;
    --c-border: #e3e7ee;
    --c-shadow: rgba(26, 34, 48, 0.08);

    /* Accent ring — a soft tint for focus, never neon */
    --c-accent-ring: rgba(108, 140, 255, 0.25);
}

body {
    font-family: IRANSans !important;
    font-weight: 300;
    direction: rtl;
    background-color: var(--c-surface);
    margin: 0;
    color: var(--c-text);
}

.panel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5rem;
}

/* --------------------------------------------------------------------------
   Card
   The old card leaned on a hard black shadow. This softens it — a white
   surface, a faint shadow, a thin border where it helps.
   -------------------------------------------------------------------------- */
.register {
    width: 23rem;
    height: fit-content;
    background-color: var(--c-bg);
    border-radius: 5px;
    box-shadow: 0 4px 16px var(--c-shadow);
    border: 1px solid var(--c-border);
    overflow: hidden;
}
.register .header {
    padding: 1rem;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 1rem;
}
.register .header p {
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text);
}
.register .header a {
    color: var(--c-text-muted);
    line-height: 10px;
    transition: color 0.18s ease;
}
.register .header a:hover {
    color: var(--c-accent);
}
.register .header i {
    font-size: 20px;
    margin-left: 1rem;
    cursor: pointer;
}
.register .body {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* --------------------------------------------------------------------------
   Password / forgot links
   Cyan is gone. Links now carry the accent.
   -------------------------------------------------------------------------- */
.register .password a {
    padding: 1rem 0;
    color: var(--c-accent);
    text-decoration: none;
    transition: color 0.18s ease;
}
.register .password a:hover {
    color: var(--c-accent-2);
}
.register .mobile, .register .password {
    display: flex;
    align-items: self-start;
    flex-direction: column;
    margin-bottom: 1rem;
}
.register .mobile label, .register .password label {
    position: relative;
    font-weight: 500;
    color: var(--c-text);
}
.register .mobile label:before {
    font: normal normal normal 30px / 1 FontAwesome;
    content: "\F10B";
    position: absolute;
    top: 42px;
    margin-right: 5px;
    font-size: 21px;
    color: var(--c-text-muted);
}
.register .password label:before {
    font: normal normal normal 30px / 1 FontAwesome;
    content: "\F023";
    position: absolute;
    top: 42px;
    margin-right: 5px;
    font-size: 21px;
    color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   Inputs
   Soft border, calm focus ring — nothing louder.
   -------------------------------------------------------------------------- */
.mobile input, .password input {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 3px;
    height: 2.7rem;
    padding: 5px 1.7rem 5px;
    color: var(--c-text);
    background-color: var(--c-bg);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.mobile input::placeholder, .password input::placeholder {
    font-size: 14px;
    font-weight: 300;
    color: var(--c-text-muted);
}
.mobile input:focus, .password input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-ring);
}

/* --------------------------------------------------------------------------
   Submit button
   This was the loudest red on the page. Now it carries the accent —
   one blue action, violet on hover.
   -------------------------------------------------------------------------- */
.body button {
    border: none;
    position: relative;
    width: auto;
    height: 3rem;
    background-color: var(--c-accent);
    border-radius: .5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0 1rem;
    margin-top: 2rem;
    transition: background-color 0.18s ease;
}
.body button:hover {
    background-color: var(--c-accent-2);
}
.body button span {
    margin: auto;
}
.body button i {
    font-size: 23px;
}
.body button:before {
    content: "";
    position: absolute;
    right: 0;
    width: 4rem;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 90%;
    border-top-left-radius: 90%;
    transition: .3s;
}
.body button:hover:before {
    width: 100%;
    border-radius: 1rem;
}

/* --------------------------------------------------------------------------
   Footer
   The yellow notice is gone. A soft surface with a border reads calmer.
   -------------------------------------------------------------------------- */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 2.1rem 0 0;
    height: 3rem;
    background-color: var(--c-surface);
    border-top: 1px solid var(--c-border);
}
.footer p {
    padding: 0;
    margin: 0;
    color: var(--c-text);
}
.footer a {
    border-bottom: 1px dashed;
    text-decoration: none;
    font-weight: 300;
    color: var(--c-accent);
    transition: color 0.18s ease;
}
.footer a:hover {
    color: var(--c-accent-2);
}

.login .body button {
    margin-top: 3px;
}
.login .footer {
    margin: 1.6rem 0 0;
}
.login .password a {
    padding: 1rem 0 0;
    font-size: 13px;
}
.reset {
    height: 17rem;
}
.reset .body button {
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Errors
   -------------------------------------------------------------------------- */
.body .errorLogin {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    text-align: center;
}
.login .text-danger {
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Social buttons
   The red border and red hover are gone. These now point with the accent —
   an accent border, a filled accent on hover.
   -------------------------------------------------------------------------- */
.social a {
    outline: none;
    text-decoration: none;
    border: 1px solid var(--c-accent);
    border-radius: 5px;
    padding: 2px 10px;
    color: var(--c-text-muted);
    transition: .3s;
    margin-left: 5px;
}
.social a:hover {
    color: #ffffff;
    background-color: var(--c-accent);
    border: 1px solid var(--c-accent);
}
.social span {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-muted);
}
.social a:hover span {
    color: #ffffff;
}
