* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.logo {
    width: 80px;
    height: 80px;
    background: #dc3545;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo svg { width: 50px; height: 50px; fill: white; }

h1 { text-align: center; margin-bottom: 1.5rem; color: #333; font-size: 1.5rem; }

.form-group { margin-bottom: 1rem; }

label { display: block; margin-bottom: 0.5rem; color: #555; font-weight: 500; }

input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8f9fa;
}

input:focus { outline: none; border-color: #dc3545; background: white; }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input { width: auto; }

button {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

button:active { transform: scale(0.98); }

.btn-login { background: #dc3545; color: white; }
.btn-login:hover { background: #c82333; }

.btn-red {
    background: #dc3545;
    color: white;
    font-weight: bold;
    padding: 1.5rem;
    font-size: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-red:hover { background: #c82333; transform: translateY(-2px); }
.btn-red:active { transform: translateY(0); }

.btn-logout { background: #6c757d; color: white; margin-top: 1rem; }

.error { color: #dc3545; text-align: center; margin-bottom: 1rem; padding: 0.75rem; background: #ffe6e6; border-radius: 8px; }

.success { color: #28a745; text-align: center; margin-bottom: 1rem; padding: 0.75rem; background: #d4edda; border-radius: 8px; }

.user-info { text-align: center; margin-bottom: 1rem; color: #555; }

.auto-login-notice { text-align: center; color: #666; font-size: 0.875rem; margin-bottom: 1rem; }

.loading { text-align: center; color: #666; }

.hidden { display: none; }

.db-status {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffc107;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    z-index: 1000;
}

.db-status.success { background: #28a745; }

.db-status.error { background: #dc3545; }

.btn-webhook {
    background: #28a745;
    color: white;
    width: 12em;
    height: 12em;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
    margin: 0 auto 1.5rem;
    display: block;
}

.btn-webhook:hover {
    background: #218838;
    transform: scale(1.05);
}

.btn-webhook:active {
    transform: scale(0.95);
}

.btn-logout-icon {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1001;
    flex: none;
    min-width: 0;
    min-height: 0;
}

.btn-logout-icon:hover {
    background: #5a6268;
}

.btn-logout-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.user-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
    font-weight: 500;
}
