/* ============================================================
   FundAcc — portal / login shell
   ============================================================ */

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: IRANSans, Tahoma, sans-serif !important;
    color: #1E2A32;
    top: 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: #EFF5F3;
    background-image:
        radial-gradient(1000px 480px at 85% -100px, rgba(20, 184, 166, .20), transparent 65%),
        radial-gradient(800px 420px at -10% 105%, rgba(217, 164, 65, .14), transparent 60%),
        linear-gradient(180deg, #F4FAF8 0%, #EFF5F3 100%);
    background-attachment: fixed;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 0;
}

a {
    color: #0F766E;
}

a:hover {
    color: #0B5D4E;
}

.card {
    border: 1px solid #DCE7E3;
    border-radius: 24px !important;
    box-shadow: 0 18px 48px rgba(15, 118, 110, .16) !important;
    transition: transform 0.3s ease, box-shadow .3s ease !important;
    overflow: hidden;
    background: #fff;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px rgba(15, 118, 110, .2) !important;
}

.card-title {
    font-family: anjoman, IRANSans, sans-serif;
    background: linear-gradient(90deg, #F3FAF8, #FDFEFE);
    margin: 0;
}

.card-title img {
    height: auto;
    border-radius: 10px;
}

.card-title h2 {
    font-family: anjoman, IRANSans, sans-serif;
    color: #0B5D4E;
    font-weight: 700;
}

.form-control {
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #DCE7E3;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
    border-color: #14B8A6;
    box-shadow: 0 0 0 .22rem rgba(20, 184, 166, .18);
}

.form-label {
    font-weight: 500;
    color: #33475B;
}

.btn {
    font-family: IRANSans, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500;
    border-radius: 14px;
    transition: all .22s ease;
}

.btn:active {
    transform: scale(.98);
}

.btn-primary {
    border-radius: 14px;
    background: linear-gradient(135deg, #0F766E, #14B8A6);
    border: 1px solid rgba(11, 93, 78, .4);
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 118, 110, .3);
    transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0B5D4E, #0F9C8C) !important;
    border-color: rgba(11, 93, 78, .5) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(15, 118, 110, .4) !important;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-radius: 14px;
    border: 1.5px solid #B9C8C3;
    color: #47605A;
}

.btn-outline-secondary:hover {
    background-color: #E8EEEC !important;
    border-color: #9DB5AE !important;
    color: #1E2A32 !important;
}

.alert {
    border-radius: 14px;
    border-inline-start-width: 4px;
}

.alert-danger {
    background: #FDECEC;
    border-color: #F5C6C6;
    border-inline-start-color: #DC2626;
    color: #9B1C1C;
}

.alert-warning {
    background: #FBF3E2;
    border-color: #EEDCB4;
    border-inline-start-color: #D97706;
    color: #8A5A06;
}

.footer {
    text-align: center !important;
    bottom: 0 !important;
    background:
        radial-gradient(600px 200px at 90% -40px, rgba(20, 184, 166, .3), transparent 70%),
        linear-gradient(180deg, #0B5D4E 0%, #0A4A3F 100%);
    color: #ffffff !important;
    padding: 1.5rem 1rem;
    font-size: 14px;
    line-height: 2.1;
}

footer p,
footer a {
    margin: 0;
    color: #B8D4CE;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    color: #D9A441;
}

.footer i {
    color: #D9A441;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 24px 64px rgba(11, 93, 78, .28);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(90deg, #F3FAF8, #FDFEFE);
    border-bottom: 1px solid #DCE7E3;
}

.modal-title {
    font-family: anjoman, IRANSans, sans-serif;
    color: #0B5D4E;
}

.modal-footer {
    background: #FBFDFC;
    border-top: 1px solid #DCE7E3;
}

.input-group-text {
    cursor: pointer;
}

.text-center {
    text-align: center;
}

.d-grid {
    margin-top: 20px;
}

.row {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .col-lg-6 {
        width: 100%;
    }
}

/* Animation for modal */
.modal-dialog {
    animation: slideIn 0.5s ease-out;
}

#InfoCompany {
    font-family: IRANSans, sans-serif !important;
    font-size: 14px !important;
}

#InfoCompany a {
    text-decoration: none;
}

#InfoCompany i {
    color: #0F766E;
    margin-inline-end: 4px;
}

hr {
    border-color: #DCE7E3;
    opacity: 1;
}

/* scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: #9CC5BD #EFF5F3;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #EFF5F3;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9CC5BD, #6FB1A5);
    border-radius: 8px;
    border: 2px solid #EFF5F3;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #14B8A6, #0F766E);
}