/* 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;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content */
.hidden { display: none; }

#content {
    padding: 20px;
    text-align: center;
}

.logo {
    width: 200px;
    margin-bottom: 20px;
}

h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Form */
.configuration {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
    background-color: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group select {
    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,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.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 */
.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;
    transition: width 0.2s;
}

/* Login */
.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; }

/* Messages */
#responseMessage {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    text-align: left;
    white-space: pre-wrap;
    max-width: 420px;
    margin: 16px auto 0;
}

#responseMessage.green {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#responseMessage.red {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 600px) {
    .configuration { padding: 15px; }
    h1 { font-size: 22px; }
    .login-container { padding: 20px; }
}
