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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0c1829 0%, #1a3a52 100%);
    min-height: 100vh;
    color: #fff;
    visibility: hidden;
}

.logo {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.card {
    background: rgba(13, 20, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px 80px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .card {
        padding: 40px 30px;
    }
}

h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #fff;
}

h1.case-title {
    margin-bottom: 60px;
}

.subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.code-box {
    width: 64px;
    height: 64px;
    background: rgba(10, 15, 26, 0.6);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .code-box {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .code-inputs {
        gap: 8px;
    }
}

.code-box:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
    background: rgba(14, 165, 233, 0.1);
}

.text-input {
    width: 100%;
    background: rgba(10, 15, 26, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    padding: 16px;
    color: #fff;
    font-size: 15px;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.text-input::placeholder {
    color: #475569;
}

.text-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.helper-text {
    color: #64748b;
    font-size: 14px;
    margin-top: 24px;
}

.submit-btn {
    width: 100%;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    padding: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:disabled {
    background: rgba(30, 41, 59, 0.8);
    color: #475569;
    cursor: not-allowed;
}

.submit-btn:not(:disabled):hover {
    background: #2563eb;
}

.submit-btn:active {
    transform: scale(0.98);
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 32px;
    border: 4px solid rgba(100, 116, 139, 0.2);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.pin-circles {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 50px 0;
    cursor: pointer;
}

.pin-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #0ea5e9;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.pin-circle.filled {
    background: #0ea5e9;
}

.forgot-link {
    color: #64748b;
    font-size: 13px;
    text-align: center;
    margin-top: 16px;
}

.seed-type-btn {
    padding: 10px 24px;
    background: rgba(13, 20, 33, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.seed-type-btn.active {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}

.seed-type-btn:hover:not(.active) {
    background: rgba(14, 165, 233, 0.2);
}

.seed-inputs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .seed-inputs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.seed-input-wrapper {
    position: relative;
}

.seed-number {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.seed-input {
    width: 100%;
    background: rgba(13, 20, 33, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    padding: 12px 12px 12px 36px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

.seed-input::placeholder {
    color: #64748b;
}

.seed-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.activity-question {
    background: rgba(13, 20, 33, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.activity-question-title {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.activity-buttons {
    display: flex;
    gap: 12px;
}

.activity-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.activity-btn.deny {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.activity-btn.deny:hover {
    background: rgba(239, 68, 68, 0.3);
}

.activity-btn.deny.selected {
    background: #ef4444;
    color: white;
}

.activity-btn.approve {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.activity-btn.approve:hover {
    background: rgba(34, 197, 94, 0.3);
}

.activity-btn.approve.selected {
    background: #22c55e;
    color: white;
}

.device-box {
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.device-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.device-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.device-info {
    flex: 1;
    text-align: left;
}

.device-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.device-details {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.button-row {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.button-row button {
    flex: 1;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 14px;
    color: #3b82f6;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
