body {
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    background: #f8f9fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login-background {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 320px;
}

#login-title {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#bermuda-logo {
    width: 56px;
    height: 56px;
}

#login-title img:last-child {
    width: 180px;
    height: auto;
    opacity: 0.9;
}

#login-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-content input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#login-content input:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

#login-content input[type="submit"] {
    background: #1E88E5;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
}

#login-content input[type="submit"]:hover {
    background: #1976D2;
}

.login-btn-wrapper {
    position: relative;
}

#login-content .login-btn-wrapper.loading input[type="submit"] {
    color: transparent;
    pointer-events: none;
}

.login-spinner {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.login-btn-wrapper.loading .login-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-footer-text {
    font-weight: 500;
}

.login-footer-version {
    font-size: 12px;
    color: #999;
}

/* Loading state */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    min-height: 140px;
    justify-content: center;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(30, 136, 229, 0.15);
    border-top-color: #1E88E5;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loading-message {
    font-size: 14px;
    color: #666;
    text-align: center;
}
