body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url('../img/bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.content {
    width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    max-width: 180px;
    margin-bottom: 10px;
}

p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

form {
    text-align: left;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

input {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 7px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    font-size: 14px;
    color: #666;
}

.checkbox-group a {
    color: #007bff;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

#message.success {
    background: #d4edda;
    color: #155724;
}

#message.error {
    background: #f8d7da;
    color: #721c24;
}

#message.warning {
    background: #fff3cd;
    color: #856404;
}

#grupeby {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-family: "verdana", sans-serif;
    font-size: 10px;
    color: #000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#grupeby a:link,
#grupeby a:visited {
    font-family: "verdana", sans-serif;
    font-size: 10px;
    color: #000;
    text-decoration: none;
}

#grupeby a:hover,
#grupeby a:active {
    text-decoration: underline;
}

.operators {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.operators span {
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.operator-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.operator-logos img {
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.operator-logos img:hover {
    opacity: 1;
}

/* Betingelser side */
.terms-content {
    width: 500px;
}

.terms-content h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.terms {
    text-align: left;
    padding: 20px;
}

.terms h2 {
    font-size: 16px;
    color: #333;
    margin: 20px 0 10px 0;
}

.terms h2:first-child {
    margin-top: 0;
}

.terms p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Login knap */
.login-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.btn-login {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background: #fff;
}

/* Login form */
.login-form {
    text-align: left;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-form h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin: 0 0 20px 0;
}

/* Test mail page */
.config-info,
.connection-status {
    text-align: left;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.config-info h2,
.connection-status h2 {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
}

pre {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.test-form {
    margin: 30px 0;
}

/* Drift side styling */
.drift-page {
    max-width: 800px;
}

.drift-page h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.drift-page h2 {
    font-size: 20px;
    color: #444;
    margin: 25px 0 15px;
}

.progress-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.progress-bar {
    background: #e9ecef;
    height: 25px;
    border-radius: 12.5px;
    overflow: hidden;
    margin: 15px 0;
}

.progress {
    background: #007bff;
    height: 100%;
    border-radius: 12.5px;
    position: relative;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    right: 10px;
    color: white;
    font-weight: bold;
    line-height: 25px;
}

.progress-description {
    text-align: center;
    color: #666;
    margin: 10px 0 0;
    font-size: 14px;
}

.drift-messages {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.drift-message {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #ddd;
}

.drift-message.warning {
    border-left-color: #ffc107;
}

.drift-message.error {
    border-left-color: #dc3545;
}

.drift-message.success {
    border-left-color: #28a745;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.date {
    color: #666;
}

.status {
    font-weight: bold;
}

.status.active {
    color: #dc3545;
}

.status.resolved {
    color: #28a745;
}

.message-content {
    color: #444;
    line-height: 1.5;
}

.no-messages {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

@media (max-width: 480px) {
    .content {
        padding: 20px;
        margin: 20px;
    }
    
    form {
        padding: 20px;
    }
}