﻿@font-face {
    font-family: 'iransans';
    src: url('/font/persian/iran-sans-300.ttf') format('truetype');
}

html, body {
    font-family: iransans !important;
    height: 100%; /* Ensure html and body take full height */
    margin: 0;
}

body {
    background-color: #f8f9fa;
    display: flex; /* Use flexbox to easily center content */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding: 0; /* Remove default padding */
}

.login-container {
    /* Now the login-container itself can span the full width and height,
               or be a contained card within a centered body */
    width: 100%; /* Take full width */
    height: 100%; /* Take full height */
    display: flex; /* Make it a flex container */
    align-items: stretch; /* Stretch items to fill height */
    justify-content: center; /* Center card horizontally if it has a max-width */
    padding: 0; /* No padding on the container itself */
}

.login-card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    width: 100%; /* Take full width */
    height: 100%; /* Make the card take full height of its container (login-container) */
}

.left-section {
    background: linear-gradient(135deg, #6dd5ed, #2193b0);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 0 0 70%; /* Allow it to grow and shrink */
    min-height: 100%; /* Ensure it takes full height of the card */
}

    .left-section img {
        max-width: 50%;
        height: auto;
        margin-bottom: 20px;
        border-radius: 8px;
    }

.right-section {
    background-color: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 30%; /* Allow it to grow and shrink */
    min-height: 100%; /* Ensure it takes full height of the card */
}
@media (max-width: 992px){
    .right-section, .left-section {
        flex: 1;
    }
}
    .right-section .form-control {
        border-radius: 0.5rem;
    }

    .right-section .btn {
        border-radius: 0.5rem;
        padding: 10px 0;
    }



/* ------- Toast ------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1080;
}

.toast {
    width: 300px;
    --bs-toast-max-width: 300px;
    --bs-toast-padding-x: 0;
    --bs-toast-padding-y: 0;
    overflow: hidden;
}

.toast-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bs-toast-bg, rgba(255, 255, 255, 0.85));
    border-bottom: none;
    color: var(--bs-toast-color, #212529);
}

    .toast-header strong {
        font-size: 1rem;
    }

    .toast-header .btn-close {
        margin-left: 0.75rem;
        font-size: 0.8rem;
    }

.toast-body {
    padding: 0.75rem 1rem;
    word-wrap: break-word;
    background-color: var(--bs-toast-bg, rgba(255, 255, 255, 0.85));
    color: var(--bs-toast-color, #212529);
}

.toast-progress {
    height: 3px;
    width: 100%;
    background-color: var(--toast-progress-color, #fafcfb);
    transition: width 0.1s linear;
}

/* Responsive adjustments */
/*@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 500px;
        height: auto;*/ /* Allow height to adjust on small screens */
        /*max-height: none;*/ /* Remove max height constraint */
    /*}

    .left-section, .right-section {
        padding: 30px;
        min-height: auto;*/ /* Remove min-height on small screens */
    /*}

        .left-section img {
            max-width: 60%;
        }

    body {
        align-items: flex-start;*/ /* Align to top on small screens if content is long */
        /*padding: 20px;*/ /* Add some padding back for small screens */
    /*}

    .login-container {
        height: auto;
    }
}*/


a#resendSmsCodeBtn {
    cursor: pointer !important;
}