body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e9f5f9 0%, #d4e9f7 100%);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(to right, #2c3e50, #4a6b8a);
    color: #fff;
    padding: 1.2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header h1 {
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.1);
}

header nav a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

main {
    flex: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 35px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #3498db, #2ecc71);
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

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

.input-group input[type="text"],
.input-group input[type="password"] {
    width: calc(100% - 24px);
    padding: 14px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
    background-color: #fff;
}

button[type="submit"],
.button-grid button,
#checkBackend {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

button[type="submit"]:hover,
.button-grid button:hover,
#checkBackend:hover {
    background: linear-gradient(to right, #2980b9, #1a5276);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(231, 76, 60, 0.1);
}

.success-message {
    color: #27ae60;
    margin-top: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(39, 174, 96, 0.1);
}

.api-status-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.button-grid button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    transition: all 0.3s ease;
}

.button-grid button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    background: linear-gradient(to right, #2c3e50, #4a6b8a);
    color: #fff;
    margin-top: auto;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

h2, h3 {
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2980b9);
    border-radius: 3px;
}

#backendStatus {
    padding: 15px;
    border-radius: 8px;
    background-color: #f0f0f0;
    margin-top: 15px;
    font-weight: 500;
}