﻿.login-container {
    max-width: 1066px;
    margin: 3rem auto;
    border-radius: 20px;
    box-shadow: 0 1px 14px rgba(236, 244, 248, 1);
    background: white;
    overflow: hidden;
    display: flex;
    min-height: 574px;
}

.login-image {
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/Content/_Layouts/default.fa-IR/Images/Form.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    min-height: 600px;
}

.login-form {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

    .login-form a {
        color: #080536;
        line-height: 2;
        font-size: 16px;
    }

.form-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 2rem;
}

    .form-logo img {
        height: 70px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    .form-logo span {
        font-size: 20px;
        font-weight: bold;
        color: #000;
    }

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: #011330;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    font-size: 20px;
    color: #011330;
    line-height: 3;
    margin-bottom: 2rem;
    text-align: center;
}

.input-container {
    position: relative;
    width: 100%;
    max-width: 337px;
    margin: 0 auto 1.5rem;
}

    .input-container input {
        width: 100% !important;
        padding: 14px 50px 14px 20px !important;
        font-size: 16px !important;
        border: 1.5px solid #d1d5db !important;
        border-radius: 8px !important;
        outline: none !important;
        height: 48px !important;
        box-shadow: none !important;
        transition: all 0.3s ease !important;
    }

        .input-container input:focus {
            border-color: #1e90ff !important;
            box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.1) !important;
        }

.icon-right {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
}

.icon-left {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
}

.btn-login {
    background: #1e90ff;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0 auto;
    width: 100%;
    max-width: 337px;
    display: block;
    height: 48px;
}

    .btn-login:hover {
        background: #1c7ed6;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(30, 144, 255, 0.2);
    }

/* انیمیشن‌ها (اختیاری — اگر نیاز ندارید حذف کنید) */
.animation-ctn {
    text-align: center;
}

.icon--order-success svg polyline {
    animation: checkmark 0.25s ease-in-out 0.7s backwards;
}

.icon--order-success svg circle {
    animation: checkmark-circle 0.6s ease-in-out backwards;
}

    .icon--order-success svg circle#colored {
        animation: colored-circle 0.6s ease-in-out 0.7s backwards;
    }

.text-ctn h1 {
    margin-top: 25px;
    font-size: 18px;
}

.text-ctn p {
    margin-top: 15px;
    font-size: 14px;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

    .password-wrapper .toggle-password {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
        font-size: 20px;
        z-index: 10;
        cursor: pointer;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}  
    
.code-inputs-container {
    max-width: 337px;
    margin: 0 auto 1.5rem;
}

.digit-input {
    width: 48px;
    height: 48px;
    font-size: 24px;
    text-align: center;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

    .digit-input:focus {
        border-color: #1e90ff;
        box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.1);
    }

.resend-section {
    max-width: 420px;
    margin: 0 auto;
}

.btn-resend-code {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

    .btn-resend-code:disabled {
        color: #6c757d;
        cursor: not-allowed;
        opacity: 0.65;
    }

.resend-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

@keyframes checkmark {
    0% {
        stroke-dashoffset: 100px
    }

    100% {
        stroke-dashoffset: 0px
    }
}

@keyframes checkmark-circle {
    0% {
        stroke-dashoffset: 480px
    }

    100% {
        stroke-dashoffset: 960px
    }
}

@keyframes colored-circle {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@media (max-width: 576px) {
    .digit-input {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .code-inputs-container {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .login-image {
        display: none;
    }

    .login-container {
        flex-direction: column;
        min-height: auto;
    }
}
