/* Login Modal Styles */
.fc-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 61, 77, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease;
}

/* This rule hides the main page content when the modal is active */
body.show-login-modal .fc-vendor-research {
    display: none !important;
}

.fc-login-container {
    background: #f9f7f3;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    animation: slideUp 0.5s ease;
    position: relative;
}

.fc-login-header {
    background: linear-gradient(135deg, #233d4d 0%, #1a2f3b 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fc-login-header::before,
.fc-login-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.fc-login-header::before { top: -20px; right: -20px; width: 100px; height: 100px; background: #fcca46; }
.fc-login-header::after { bottom: -30px; left: -30px; width: 120px; height: 120px; background: #fe7f2d; }

.fc-login-logo {
    width: 90px;
    height: 90px;
    background: #f9f7f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
}

.fc-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fc-login-title {
    font-family: 'Poppins', sans-serif;
    color: #f9f7f3;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.fc-login-subtitle {
    color: rgba(249, 247, 243, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 1;
}

.fc-login-subtitle .fc-portal-redirect {
    color: #fcca46;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #fcca46;
    transition: all 0.3s ease;
}

.fc-login-subtitle .fc-portal-redirect:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.fc-login-body { padding: 2.5rem 2rem; }
.fc-login-form { margin-bottom: 1.5rem; }
.fc-form-group { margin-bottom: 1.5rem; position: relative; }

.fc-form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #233d4d;
}

.fc-input-with-icon { position: relative; }
.fc-input-with-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.fc-input-with-icon input:focus {
    outline: none;
    border-color: #a1c181;
    box-shadow: 0 0 0 3px rgba(161, 193, 129, 0.2);
}

.fc-input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #233d4d; opacity: 0.6; }

.fc-login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #fe7f2d 0%, #e57225 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(254, 127, 45, 0.3);
}

.fc-login-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(254, 127, 45, 0.4);
    filter: brightness(1.1);
}

.fc-login-button:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(254, 127, 45, 0.3);
}

.fc-login-button:disabled { opacity: 0.7; cursor: wait; }

.fc-login-error, .fc-login-success {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}
.fc-login-error { background: #ffe3e3; color: #c92a2a; animation: shake 0.5s ease; }
.fc-login-success { background: #d3f9d8; color: #2b8a3e; }

.fc-login-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }

