/* Modern & Professional Login Style v2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --bg-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --input-border: #e5e7eb;
    --input-focus: #3b82f6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Container */
.login-box {
    width: 100%;
    max-width: 440px;
    /* Changed to max-width for better responsiveness */
    background: var(--card-bg);
    padding: 48px;
    /* Increased padding slightly for better breathing room */
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    z-index: 10;
    margin: 20px;
    /* Add some margin for mobile */
}

/* Background Decoration */
body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
}

/* Logo & Title */
.login-logo {
    margin-bottom: 32px;
}

.login-logo img {
    max-height: 70px;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-logo a {
    color: var(--text-main);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Card Elements */
.card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.card-body {
    padding: 0;
}

.login-box-msg {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    font-weight: 400;
}

/* Form Controls */
.input-group {
    margin-bottom: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.form-control {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    height: 56px;
    padding: 0 35px 0 20px;
    /* Reduced from 40px to 35px */
    font-size: 15px;
    color: var(--text-main) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

.form-control:focus {
    border-color: var(--input-focus) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
    outline: none;
}

.input-group-append {
    position: absolute;
    right: 12px;
    /* Moved tighter from 15px to 12px */
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
    transition: all 0.3s ease;
    width: 20px;
    /* Fixed width to prevent extra space */
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-group:focus-within .input-group-append i {
    color: var(--primary-color);
}

.input-group-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

/* Button */
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    height: 54px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alert */
.alert {
    border-radius: 12px;
    font-size: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Footer Info */
.text-muted {
    color: var(--text-muted) !important;
    font-size: 13px;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        width: 90%;
        padding: 30px 20px;
    }
}