/* ========================================
   Login Page - Minimal & Clean ERP Design
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(/img/bg.jpg) center center / cover no-repeat;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Header Section */
.login-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.login-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 12px;
}

.login-title {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.3px;
}

/* Form Section */
.login-body {
    padding: 30px;
}

/* Form Group */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    text-align: left;
}

/* Input Fields */
.form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

/* Custom Dropdown */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-dropdown.show {
    display: block;
}

.custom-option {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: #f9fafb;
    color: #1f2937;
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Footer */
.login-footer {
    background: #f9fafb;
    padding: 16px 30px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-text {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-header {
        padding: 24px 20px 16px;
    }

    .login-body {
        padding: 24px 20px;
    }

    .login-footer {
        padding: 12px 20px;
    }

    .login-logo {
        max-width: 120px;
    }

    .login-title {
        font-size: 16px;
    }
}

/* Scrollbar Styling */
.custom-dropdown::-webkit-scrollbar {
    width: 5px;
}

.custom-dropdown::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.custom-dropdown::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.custom-dropdown::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

