﻿@font-face {
    font-family: 'Bhoma';
    src: url('Fonts/BHoma.ttf') format('truetype');
}

:root {
    --primary-color: #0F3057;
    --secondary-color: #FF8126;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bhoma', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    background-color: #E0E0E0;
}

.login-bg-section {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/BANNER.png') no-repeat center center fixed;
    background-size: cover;
    z-index: 1;
}


.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 48, 87, 0.75);
    z-index: 2;
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    margin: 20px;
}

.logo-area {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.logo-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    background: #FF8126;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(255, 129, 38, 0.6);
    animation: pulse 2s infinite;
}

.logo-area img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-area h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 129, 38, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 129, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 129, 38, 0);
    }
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

    .input-group i {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.5);
        transition: 0.3s;
        font-size: 18px;
    }

    .input-group input {
        width: 100%;
        padding: 14px 50px 14px 15px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        color: #fff;
        font-size: 14px;
        outline: none;
        transition: 0.3s;
        text-align: right;
        direction: rtl;
    }

        .input-group input::placeholder {
            color: rgba(255, 255, 255, 0.5);
            text-align: right;
        }

        .input-group input:focus {
            border-color: var(--secondary-color);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 10px rgba(255, 129, 38, 0.2);
        }

            .input-group input:focus + i {
                color: var(--secondary-color);
            }

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 129, 38, 0.3);
}

    .submit-btn:hover {
        background: #e06b15;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 129, 38, 0.4);
    }

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

    .register-link a {
        color: var(--secondary-color);
        text-decoration: none;
        font-weight: bold;
    }
/* دکمه بازگشت  */
.back-home {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 30px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

    .back-home:hover {
        background: var(--secondary-color);
        color: #fff;
        transform: translateX(-5px);
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

    .checkbox-group input {
        width: 16px;
        height: 16px;
        accent-color: var(--secondary-color);
        cursor: pointer;
    }
/* ریسپانسیو برای موبایل */
@media (max-width: 480px) {
    .login-bg-section {
        min-height: calc(100vh - 120px);
    }

    .login-container {
        padding: 30px 20px;
        width: 90%;
    }

    .logo-wrapper {
        width: 80px;
        height: 80px;
    }

    .logo-area img {
        width: 50px;
        height: 50px;
    }

    .back-home span {
        display: none;
    }

    .back-home {
        padding: 10px;
        border-radius: 50%;
    }
}
