@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #5D814E;
    --primary-light: #74A162;
    --primary-dark: #3C5432;
    --text-color: #444444;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --input-border: #DADADA;
    --input-focus: #5D814E;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body#login {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #5D814E;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

#container {
    width: 100%;
    max-width: 520px;
    animation: fadeIn 0.6s ease-out;
}

.login-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 48px 40px;
    width: 100%;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header img {
    max-width: 200px;
    height: auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 0.01em;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1.5px solid var(--input-border);
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(93, 129, 78, 0.15);
    transform: translateY(-1px);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.btn-modern {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: none;
    display: inline-block;
    box-sizing: border-box;
}

.btn-primary-modern,
.btn-secondary-modern {
    background-color: #444444;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary-modern:hover,
.btn-secondary-modern:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    background-color: #333333;
    transform: translateY(-2px);
}

.btn-primary-modern:active,
.btn-secondary-modern:active {
    transform: translateY(0);
}

.form-utils {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
}

.remember-me span {
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    display: inline-block !important;
    margin: 0;
}

body#login input[type="checkbox"]+label:before {
    display: none !important;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Modal styling for Search Report */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.4s ease-out;
}

.modal-header {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-color);
    border-bottom: 2px solid #f0f4f2;
    padding-bottom: 16px;
    text-align: center;
}

.modal-body {
    margin-bottom: 32px;
}

.modal-footer {
    display: flex;
    gap: 12px;
}

.modal-footer .btn-modern {
    flex: 1;
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
    display: block;
}

.alert-danger {
    background-color: #fff1f2;
    color: #e11d48;
    border: 1.5px solid #fecdd3;
    text-align: center;
}

#FailureText {
    margin-bottom: 24px;
}