﻿
@font-face {
    font-family: 'Tahoma';
    src: local('Tahoma');
}

body {
    font-family: 'Tahoma', 'B Nazanin', sans-serif;
    height: 100vh;
    margin: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    gap: 25px;
    margin-top: 40px;
    padding: 25px;
    margin-bottom: 130px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    animation: fadeIn 0.6s ease-out;
    background: #ffffff;
    border-radius: 16px;
}

.side-card {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .side-card img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        opacity: 0;
        animation: fadeIn 1s ease forwards;
    }

.content-card {
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 16px;
    box-shadow: inset 4px 4px 10px rgba(0,0,0,0.15), inset -4px -4px 10px rgba(255,255,255,0.9);
    overflow-y: auto;
}

footer {
    width: 100%;
    height: 90px;
    position: fixed;
    bottom: 0;
    left: 0;
    background: url("/footer.jpg") no-repeat center / cover;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .container {
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        margin-bottom: 130px;
    }

    .side-card, .content-card {
        width: 100%;
    }

    .side-card {
        order: 1;
    }

    .content-card {
        order: 2;
    }

    .modal-body h4 {
        font-weight: 400;
    }
}

@media (max-width: 500px) {
    .content-card {
        padding: 15px;
    }

    .side-card {
        padding: 15px;
    }

    .modal-body h4 {
        font-weight: 300;
    }
}

.modal-body h4 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.modal-body p {
    color: #555;
    margin-bottom: 20px;
}

.form-control {
    border: none !important;
    border-radius: 5px;
    padding: 12px 14px;
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.12), inset -2px -2px 6px rgba(255,255,255,0.9);
}

    .form-control:focus {
        outline: none;
        box-shadow: inset 1px 1px 5px rgba(0,0,0,0.18), inset -1px -1px 5px rgba(255,255,255,0.95);
    }

.modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-app {
    padding: 10px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: none;
    transition: 0.2s;
}

    .btn-app:hover {
        box-shadow: inset 3px 3px 8px rgba(0,0,0,0.15), inset -3px -3px 8px rgba(255,255,255,0.9);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

span {
    margin-left: 5px;
}

#changePassword {
    display: none;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.invalid-feedback {
    position: absolute;
    right: 5px;
    bottom: -18px;
    font-size: 12px;
    color: #dc3545;
    opacity: 0;
    transition: opacity .3s ease;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    opacity: 1;
}

.form-control.is-valid:focus, .was-validated .form-control:valid:focus,
.form-control.is-invalid:focus, .was-validated .form-control:invalid:focus {
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.18), inset -1px -1px 5px rgba(255, 255, 255, 0.95);
}

.login-container {
    min-width: 100% !important;
}

.login-container input {
    max-width: 400px !important;
}

.modal-dialog {
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

body.swal2-shown.swal2-height-auto {
    padding-right: 0 !important;
    height: 100% !important;
}

#nprogress .bar {
    background: linear-gradient(to right, #0d6efd, #6610f2) !important;
    height: 4px;
}

.access-container {
    margin: auto;
    padding: 45px 50px;
    border-radius: 22px;
    animation: fadeIn 0.6s ease;
    line-height: 1.9;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.icon {
    font-size: 85px;
    color: #ff4d4d;
    margin-bottom: 15px;
    animation: pulse 1.4s infinite;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 800;
}

p {
    font-size: 15px;
    color: #666;
    line-height: 32px;
    margin-bottom: 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

h1 i,
h2 i {
    margin-left: 20px;
    font-size: 32px;
}

ul {
    list-style: none;
    padding-right: 22px;
    margin-top: 10px;
    color: #444;
}

li {
    margin-bottom: 8px;
    font-size: 15px;
}
