﻿/* ===============================
       🔹 FULL LOGIN PAGE BACKGROUND
    =============================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../images/BGLoginAccess.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
}

    .login-page::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1;
    }

/* ===============================
       🔹 LOGIN CARD
    =============================== */
.login_area {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    width: 380px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: fadeIn 0.8s ease;
}

.login_header {
    background-color: #006b2d; /* IFFCO Green */
    padding: 25px 15px;
    text-align: center;
}

    .login_header img {
        height: 100px;
        border-radius: 6px;
        border: solid 2px #fff;
    }

.login_body {
    padding: 30px 35px 35px 35px;
    background: rgba(255, 255, 255, 0.98);
}

/* ===============================
       🔹 INPUTS
    =============================== */
.form-control {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px 12px;
    margin-bottom: 18px;
    font-size: 15px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #28a745;
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.4);
        outline: none;
    }

/* 🔹 Password Eye Icon */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: #000;
    }

/* ===============================
       🔹 LOGIN BUTTON
    =============================== */
.btn-primary {
    background-color: #006b2d; /* IFFCO Green */
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 10px;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: #00994c; /* lighter green hover */
        transform: scale(1.02);
    }

/* ===============================
       🔹 ANIMATIONS
    =============================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
       🔹 RESPONSIVE
    =============================== */
@media (max-width: 480px) {
    .login_area {
        width: 90%;
    }

    .login_body {
        padding: 25px 20px;
    }

    .login_header img {
        height: 55px;
    }
}

/* Background for login page */
/*.login-page {
    background-image: url('../images/bgloginaccess.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 95vh;*/ /* पूरी स्क्रीन भरने के लिए */
/*}*/

/* Login area box */
/*.login_area {
    background: #ffffff;
    min-height: 400px;
    width: 400px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-top: 4px solid #007c39;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}*/

/* Inner padding */
/*.login_area_under {
    padding: 30px 35px 40px 35px;
}*/

/* Header with logo */
/*.login_header {
    padding: 30px 0;
    background: #007c39;
    text-align: center;
}

    .login_header img {
        max-width: 200px;
        display: block;
        margin: 0 auto;
    }*/

/* Alert styling */
/*.login-page .alert {
    width: 400px !important;*/ /* Force apply */
    /*margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    position: fixed;
    top: 21%;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    animation: fadeInOut 5s ease forwards;
}*/

/* Animation: fade-in and fade-out */
/*@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}*/
