/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-content {
    text-align: center;
}

.loader-content img {
    width: 220px;
    animation: spin 3s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    color: #555;
    font-weight: 500;
}

/* Animation for logo spin */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Styles */
.hidden {
    display: none;
}

#content {
    padding: 20px;
    text-align: center;
}

.logo {
    width: 200px;
    margin-bottom: 20px;
}

h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Configuration Form Styles */
.configuration {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.form-group button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 91, 179, 0.3);
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 6px;
    margin-top: 20px;
    display: none;
}

.progress {
    height: 10px;
    background-color: #007bff;
    border-radius: 6px;
    width: 0;
}

/* Login Form Styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container img {
    width: 150px;
    margin-bottom: 20px;
}

.login-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.login-container form {
    text-align: left;
}

.login-container .form-group {
    margin-bottom: 20px;
}

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

.login-container .form-group input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-container .form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.login-container .form-group button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.login-container .form-group button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 91, 179, 0.3);
}

/* Responsive Design */
@media (max-width: 600px) {
    .configuration {
        padding: 15px;
    }

    .form-group input, .form-group button {
        font-size: 14px;
    }

    h1 {
        font-size: 22px;
    }

    .login-container {
        padding: 20px;
    }
}

#responseMessage {
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

#responseMessage.green {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#responseMessage.red {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
