/* General Page Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
}

/* Wrapper to center the login box */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* The white card container */
.login-box {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}

#error-message {
    color: #ff4d4d;
    font-size: 14px;
    text-align: center;
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #ffe6e6;
    border: 1px solid #ff4d4d;
    border-radius: 5px;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-8px); }
    40%      { transform: translateX(8px); }
    60%      { transform: translateX(-5px); }
    80%      { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* Button disabled state */
#loginBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


h2 {
    margin-bottom: 10px;
    color: #333;
}

.text-muted {
    color: #888;
    font-size: 14px;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #FF5B1E;
}

/* Utility classes for layout */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

/* Button Styling */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-primary {
    color: #fff;
    background-color: #FF5B1E;
    border-color: #FF5B1E;
}

.btn-primary:hover {
    background-color: #e04a14;
}

.fw-bold {
    font-weight: bold;
    text-decoration: none;
}




/* Modal Overlay */
.fp-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Black with opacity */
    backdrop-filter: blur(5px); /* Blur effect */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Modal Active State */
.fp-modal-overlay.show {
    display: flex;
    opacity: 1;
}

/* Modal Box */
.fp-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.fp-modal-overlay.show .fp-modal-content {
    transform: translateY(0);
}

/* Close Button */
.fp-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.fp-close-btn:hover {
    color: #FF5B1E;
}

/* Icon Box */
.fp-icon-box {
    width: 60px;
    height: 60px;
    background-color: #fff0eb;
    color: #FF5B1E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
}

/* Form Styling tweaks for modal */
.fp-modal-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.fp-modal-content .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.fp-error-msg {
    color: red;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
}

