/* Ebiz Server Monitoring form */

.ebiz-page {
    min-height: 100vh;
    min-height: 100dvh;
}

.ebiz-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 16px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.ebiz-card {
    width: 100%;
    max-width: 560px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    padding: 32px 28px;
}

.ebiz-header {
    margin-bottom: 28px;
}

.ebiz-back {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 16px;
    transition: color 0.25s ease;
}

.ebiz-back:hover {
    color: var(--accent2);
}

.ebiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--accent2);
}

.ebiz-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 8px;
    color: var(--text);
}

.ebiz-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ebiz-form {
    position: relative;
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ebiz-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ebiz-form input,
.ebiz-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(10, 22, 40, 0.55);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ebiz-form input:focus,
.ebiz-form textarea:focus {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ebiz-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gps-panel {
    margin: 8px 0 22px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.gps-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.gps-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    flex-shrink: 0;
}

.gps-panel.is-ready .gps-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

.gps-panel.is-refining .gps-dot {
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
    animation: gpsPulse 1.2s ease-in-out infinite;
}

@keyframes gpsPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

.gps-coords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.gps-coords strong {
    color: var(--text);
    font-weight: 600;
}

.ebiz-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
}

.ebiz-alert.is-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.ebiz-alert.is-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.ebiz-form .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ebiz-success {
    text-align: center;
    padding: 24px 8px 8px;
}

.ebiz-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #22c55e, #06b6d4);
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
}

.ebiz-success h2 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 8px;
}

.ebiz-success p {
    color: var(--text-muted);
}

.ebiz-redirect {
    margin-top: 16px;
    font-size: 0.85rem;
}

@media (max-width: 560px) {
    .ebiz-card {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
