﻿/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-image: url('../loginv4/background-waves.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* لایه نیمه‌شفاف برای خوانایی بهتر */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(255, 248, 231, 0.7);*/
    z-index: -1;
}


.login-container {
    padding: 20px;
}

.login-card {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    max-width: 1100px;
    margin: 0 auto;
}

/* Form Container */
.form-container {
    padding: 20px;
}

.logo {
    width: 60px;
    height: auto;
}

h4 {
    color: #333;
    font-size: 24px;
}

.text-warning {
    color: #F9A825 !important;
}

/* Custom Input Styles */
.custom-input {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #E0E0E0;
    background-color: #F8F8F8;
    transition: all 0.3s ease;
}

    .custom-input:focus {
        background-color: #fff;
        border-color: #F9A825;
        box-shadow: 0 0 0 0.2rem rgba(249, 168, 37, 0.15);
    }

    .custom-input::placeholder {
        color: #BDBDBD;
        font-size: 14px;
    }

/* Password Container */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: #F9A825;
    }

/* Form Check */
.form-check-label {
    font-size: 14px;
    color: #666;
}

.form-check-input:checked {
    background-color: #F9A825;
    border-color: #F9A825;
}

/* Submit Button */
.btn-warning {
    background: linear-gradient(135deg, #FDB931 0%, #F9A825 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 168, 37, 0.3);
}

    .btn-warning:hover {
        background: linear-gradient(135deg, #F9A825 0%, #F57F17 100%);
        box-shadow: 0 6px 20px rgba(249, 168, 37, 0.4);
        transform: translateY(-2px);
    }

/* Footer Text */
.footer-text {
    margin-top: 30px;
}

    .footer-text p {
        line-height: 1.6;
    }

/* Image Container - Updated */
.image-container {
    height: 100%;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background-color: white; /* پس‌زمینه سفید برای حاشیه */
    padding: 20px; /* حاشیه سفید */
}

    /* Remove the gradient overlay or make it subtle */
    /*.image-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.1);*/ /* فقط یه سایه خیلی ملایم */
        /*z-index: 1;
    }*/

.overlay-logo {
    position: absolute;
    top: 20px; /* حاشیه بالا */
    left: 20px; /* حاشیه چپ */
    right: 20px; /* حاشیه راست */
    bottom: 20px; /* حاشیه پایین */
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border-radius: 20px;
    box-shadow: none;
    backdrop-filter: none;
    max-width: none;
    overflow: hidden;
}

.webcam-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    border-radius: 20px;
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    .image-container {
        min-height: 400px;
        order: -1;
    }
}

/* For larger screens */
@media (min-width: 992px) {
    .image-container {
        min-height: 700px;
    }
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.6s ease-out;
}

/* Label Styles */
.form-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}
