/* estock/assets/css/login_style.css */

body { 
    min-height: 100vh;
    background-color: #198754; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-card {
    width: 100%;
    max-width: 450px; 
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    padding: 2.5rem 2rem;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.btn-primary {
    background-color: #198754;
    border-color: #198754;
    padding: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #146c43;
    border-color: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(25, 135, 84, 0.2);
}

.form-control {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.form-control:focus { background-color: #fff; }
.input-group-text { background-color: #fff; border-right: none; }
.input-group .form-control { border-left: none; }

.form-label {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

/* 🟢 LOGO STYLING */
.login-logo {
    width: 140px;         /* Increased from 90px */
    height: auto;         /* Auto height keeps it from stretching */
    max-height: 140px;    /* Prevents it from getting too tall */
    object-fit: contain;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 🟢 CUSTOM CHECKBOX STYLING */
.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
    border-color: #198754;
}
/* ==========================================
   📱 MOBILE RESPONSIVENESS TWEAKS (LOGIN)
   ========================================== */
@media (max-width: 575.98px) {
    body {
        padding: 15px; /* Reduces the outer gap on small screens */
    }

    .login-card {
        padding: 2rem 1.5rem !important; /* Gives the inputs more horizontal breathing room */
        border-radius: 20px; /* Slightly rounder, more modern mobile feel */
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .login-logo {
        width: 110px !important;      /* Increased from 75px for mobile */
        height: auto !important;
        max-height: 110px !important;
    }

    h3 {
        font-size: 1.5rem !important; /* Scaled down heading */
    }

    /* Thumb-Friendly Inputs & Buttons */
    .form-control, 
    .input-group-text, 
    .btn-outline-secondary {
        height: 50px !important; /* Taller touch targets */
        font-size: 0.95rem;
    }

    .btn-primary {
        height: 54px !important; /* Large, satisfying login button */
        font-size: 1.1rem !important;
        border-radius: 50px !important;
    }

    .form-check-label, .text-success.small {
        font-size: 0.85rem !important; /* Adjusts the 'Remember me' and 'Forgot Password' sizes */
    }
}