/* SGO Customer App Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.screen { width: 100%; max-width: 550px; }
.container {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.logo { font-size: 80px; text-align: center; margin-bottom: 20px; }
.logo-small { font-size: 40px; }

h1 { color: #667eea; text-align: center; font-size: 32px; margin-bottom: 10px; }
h2 { color: #667eea; font-size: 24px; margin: 0; }
.subtitle { text-align: center; color: #666; margin-bottom: 30px; }

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #333; font-weight: 600; margin-bottom: 8px; }
.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}
.form-group input:focus { outline: none; border-color: #667eea; }
.help-text { font-size: 13px; color: #999; margin-top: 5px; }

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); }

.btn-control {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    padding: 20px;
}

.btn-secondary { background: #6c757d; color: white; }
.btn-full { width: 100%; margin-top: 10px; }
.btn-logout {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.info-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}
.info-row:last-child { border-bottom: none; }
.info-row .label { color: #666; font-weight: 500; }
.info-row .value { color: #333; font-weight: 600; }

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}
.status-badge.online { background: #d4edda; color: #28a745; }
.status-badge.offline { background: #f8d7da; color: #dc3545; }

.door-status-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 25px;
}

.lock-icon { font-size: 80px; margin-bottom: 15px; }
.door-status { font-size: 32px; font-weight: 800; letter-spacing: 2px; }
.door-status.open { color: #dc3545; }
.door-status.closed { color: #28a745; }

.user-info {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}
.user-info p { color: #666; font-size: 14px; margin: 5px 0; }
.user-info strong { color: #667eea; }

.footer-text { text-align: center; margin-top: 20px; color: #999; font-size: 14px; }
.footer-text a { color: #667eea; text-decoration: none; }

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
}
.notification.success { background: #28a745; }
.notification.error { background: #dc3545; }
.notification.info { background: #17a2b8; }

@media (max-width: 600px) {
    .container { padding: 30px 20px; }
    h1 { font-size: 28px; }
    .logo { font-size: 60px; }
}

/* Additional styles for auth screens */
.info-box {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.info-box.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.info-box.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.info-box.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Header with multiple items */
.header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
